Debugging toplink.jar

I'm trying to debug into a UnitOfWork.commit call and I've attached source.jar to toplink.jar in Eclipse 3.0.1.
Problem: Eclipse can't find publicinterface.UnitOfWork in source.jar. There is no publicinterface folder in source.jar.
Questions:
1. Why is there no publicinterface folder in source.jar?
2. What is the correct process for debugging toplink.jar?
Thanks,
Ed

In my experience I have been able to use the source.jar in conjunction with the provided toplink.jar to debug functions in the source provided. However, the implementation of UnitOfWork is not provided.
I would recommend using th evalidation levels on the UnitOfWork (JAVADOC: http://download-west.oracle.com/docs/cd/B10464_04/web.904/b10491/oracle/toplink/sessions/UnitOfWork.html).
unitOfWork.performFullValidation()
unitOfWork.performPartialValidation()
Additionally you can try unitOfWork.validateObjectSpace()
http://download-west.oracle.com/docs/cd/B10464_04/web.904/b10491/oracle/toplink/sessions/UnitOfWork.html#validateObjectSpace()
These API's are intended to assist in UnitOfWork diagnostics.
If this does not assist then please post specifics of the issue you are trying to debug.
Doug

Similar Messages

  • Toplink jar files for Jdeveloper

    What Toplink jar files do in need to setup inside jdeveloper?

    You will need TopLink.jar.
    - antlr.jar is required if using EJBQL
    - source.jar should be added to the library to assit in debugging
    Doug

  • Debug toplink connections

    Hi all,
    I am trying to debug some connection leaks in my application.This is because I saw connections reached maximum error, though I have max connections settings set to 300.
    I am trying to start my container using
    "D:\oc4j\j2ee\home>C:\jdk1.3.1_12\bin\java -Xmx256M -Djdbc.connection.debug=true
    -jar oc4j.jar"
    I dont see any debug while I run my application.
    "-Ddatasource.verbose = true" works fine.
    I have sessions.xml settings for logging as follows.
    <enable-logging>true</enable-logging>
    <logging-options>
    <log-exceptions>true</log-exceptions>
    <log-exception-stacktrace>true</log-exception-stacktrace>
    <print-thread>true</print-thread>
    <print-session>true</print-session>
    <print-connection>true</print-connection>
    <print-date>true</print-date>
    </logging-options>
    Any Ideas , on what is going wrong?
    Thanks in advance.
    Giri.

    I'd cross pose this question to the App Server forums... I assume you are not using TopLink's basic connection pool and instead are pointing it to the app server connection pool (recommended)? If so, you will not see any specific logging in TopLink, it's the app servers responsibility. If you were using TopLink's connection pool, then you'd see the logging (but would get less flexibility and control than what the app server offers).
    - Don

  • Annotations missing from toplink.jar

    The download of Toplink 11g includes the toplink.jar along with a few other jar files and a source .zip file. The toplink.jar does not include the oracle.toplink.annotations package which is necessary to use the @Convert and @Converter annotations for working with datatypes Toplink does not already understand. These classes are included in the source distribution. Am I missing something? Do I need to build the jar file from source to get the annotations package or is this available in another jar file?
    Thanks,
    Scott Akins

    The TopLink 11g release has a toplink.jar which delivers native ORM/OXM/EIS functionality focused on backwards compatibility with previous releases (uses the oracle.toplink.* packaging).
    The release also includes the EclipseLink libraries where all of the annotation support is delivered focused on implementing JPA with annotations and extended XML configuration. If you want to use JPA and our advanced annotations you should be using the included EclipseLink library.
    Doug

  • Create Shared Library for toplink.jar

    I have followed the "How-to: Swap Oracle JDBC Drivers" http://www.oracle.com/technology/tech/java/oc4j/1013/howtos/how-to-swapjdbclib/doc/readme.html and try to do the same for toplink.jar.
    However, when I check with the call oracle.toplink.Version.getVersion() it still return that I'm using 1013 DP4 toplink.
    From the post in Toplink forum Re: Change Toplink library version used on 1013 DP4 it seems that it is difficult, to use another toplink version in 1013 DP4...
    I would like to confirm if that's the case? Any other methods I can try?

    This is a duplicate of
    http://forum.java.sun.com/thread.jspa?threadID=676996

  • Debugging rt.jar

    I'm trying to debug classes from rt.jar.
    I'm using java version "1.4.2_01"
    unfortunatly the classes are compiled without line numbers.
    Now I'm trying to compile them myself, but I get tons of errors.
    So I've got two questions:
    1) Is there an rt.jar with debug information ?
    2) Has someone a ant script that might to the apropriate ?
    thx
    matt

    I believe you should still be able to obtain the java_g JRE distribution from Sun, java_g contains all the debugging information you need for that kind of troubleshooting. Back in the days java_g was distributed along with the standard JRE, but not anymore because of its bloated size, so I believe you have to request it explicitly from Sun.

  • How to debug the jar files while developing the native extension for android

    ANyone???

    I'm having the same problem. I learned FB and Eclipse. I've read the tutorials, created an ane, and built it into a test app. I can debug my test app within FB 4.7 on my mobile device via USB. But there are bugs and they silently fail. Despite all my Log statements in my android java code, they won't output to the FB console. I'm blind, without even trace statements to help fix my ane. I've searched the internet and can't find anything. It must either be terribly obvious or arcane, because no one mentions it.
    Can anyone tell me how to get trace out of an ane?
    The Android reference claims debug and verbose priority are stripped out at runtime. I switched to Log.i() but still get nothing. I suppose for now I'll try throwing errors and see if I can report trace info that way if possible.
    Anyone perhaps have a JUnit test that will mimic AIR using the ane jar file as an extension? Perhaps it will be easier to go full native until the android side is debugged.
    Update Edit: Ok, now spending more time reading the Android developers website. I've found I can use logcat to get all kinds of useful system logs, including the log output of my embedded ane. I created a nice big command line window (180 char wide with a 500 deep buffer so I can scroll back through all the messages), then from the android platform tools directory I ran 'adb shell', then at the shell prompt $>logcat
    Links to info that helped me:
    http://developer.android.com/tools/debugging/index.html
    http://developer.android.com/tools/help/logcat.html

  • Toplink.jar/manifest/issue

    Hello!
    I need to read library-informations with ANT-Task jarlib-display.
    I use Toplink 9.0.3 and it would be nice to have an useful toplink manifest - file with package specifications.
    regards
    Harald.

    Hello Doug!
    The optional ANT-Task "jarlib-display" delivers manifest-information of jar-files.
    You can test it with the following ANT-Task (tested with ANT Version 1.5.4):
    <!-- Task-Example to read library-information -->
    <target name="libraryInfo" description="Displays the optional package and package specification information of jars">
    <jarlib-display>
    <fileset dir="${lib.dir}">
    <include name="*.jar"/>
    </fileset>
    </jarlib-display>
    </target>
    Example ANT-Task for generating jar-file:
    <!-- Target generates jar-file from compiled classes -->
    <target name="distjar" depends="compile" description="Generates jar-file from compiled classes">
    <jar jarfile="${jar.dir}/${jarfile}" compress="false">
    <fileset dir="${build.classes.dir}" excludes="**/test/**" includes="**/*.class"/>
    <manifest>
    <attribute name="Extension-Name" value="${manifest.extension-name}"/>
    <attribute name="Specification-Version" value="${project.version}.${build.number}"/>
    <attribute name="Specification-Title" value="${manifest.title} "/>
    <attribute name="Specification-Vendor" value="${manifest.vendor} "/>
    <attribute name="Implementation-Version" value="${project.version}.${build.number}"/>
    <attribute name="Implementation-Title" value="${manifest.title}"/>
    <attribute name="Implementation-Vendor" value="${manifest.vendor} "/>
    </manifest>
    </jar>
    </target>
    Running "ant libraryInfo" on Apache "commons-collection.jar" the task prints this:
    [jarlib-display] -------------------------------------------------------------
    [jarlib-display] File: C:\DevProjects\FbProt\model\lib\commons-collections.jar
    [jarlib-display] -------------------------------------------------------------
    [jarlib-display] Extensions Supported By Library:
    [jarlib-display] Extension-Name: org.apache.commons.collections
    [jarlib-display] Specification-Version: 2.1.1
    [jarlib-display] Specification-Vendor: Apache Software Foundation
    [jarlib-display] Implementation-Version: 2.1.1
    [jarlib-display] Implementation-Vendor: Apache Software Foundation
    regards
    Harald.

  • Is there way to debug JAR file,which doesnt has sources.

    Hi
    I have jar file called myjar.jar,which contains only .class files.Assume,I dont have sources for this jar.
    Is there way to debug myjar.jar file??
    However,I can use Djcompiler and get the sources for the jar and use it for debugging.I think,Its not good Idea??
    Thanks in advance.
    Thanks
    kaleem

    Hello,
    Yes - Alt+92 works, but it is too complicated method for most users. As \ is used so often (e.g. login into domain, file and UNC paths) there should be more direct support in keyboard layout.
    Some users are using other Languages (English, Russian) keyboard layout, just to enter that single character.
    Those who know about presence of Microsoft Keyboard Layout Creator load the existing layout and modify it so that VK_OEM_5 key with "\ |" on it in combination with space produce "\" and not "°".
    I would suggest to map "\" to AltGr + "/" key, because it is physically close to VK_OEM_5 and also conceptually idea that AltGr changes meaning from one slash to other is quite logical. That combination is not currently used, so it can be used for that new
    purpose without breaking anything.
    Dainis

  • Can be toplink-essentials.jar and toplink-essentials-agent.jar shared ?

    I have 2 apps, A and B, toplink-essentials.jar and toplink-essentials-agent.jar are not in their war /lib directory. It is in /common/lib (Tomcat 5.5) or /toplink/jlib (OC4J 10.1.3.2.0).
    First I deploy and run A - it works, then I deploy and run B - it fails with exception: No Persistence provider for EntityManager named ...
    When I do it in opposite sequence, B works ok, A fails.
    When I add toplink-essentials.jar and toplink-essentials-agent.jar into war /lib, both works OK, but only on Tomcat. On OC4J not. Itried to add orion-web.xml
    <orion-web-app>
    <web-app-class-loader search-local-classes-first="true"/>
    </orion-web-app>
    but without success. Second application still failed.
    Can be toplink jars shared between applications ?
    Tested with build 41
    Lumir

    Note: The agent JAR is only needed when starting a
    client outside the container.Yes, I kow it - but I am confused, that OC4J /toplink/jlib contain agent, and tutorial at
    http://www.oracle.com/technology/products/ias/toplink/jpa/examples/jsf-jpa-example.html#CHDDIFII
    also say: Add toplink-essentials.jar and toplink-essentials-agent.jar to <EXAMPLE_HOME>\lib.
    Is there any more information in the stack trace that
    might help figure out why the second persistence unit
    cannot be initialized?javax.persistence.PersistenceException: No Persistence provider for EntityManager named xxx
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
    Are you setting up any TopLink session configuration
    properties in your persistence unit (i.e.
    toplink.session-name)?No. I have only session customizer, that does following in customize()
    JNDIConnector connector = (JNDIConnector) session.getLogin().getConnector();
    connector.setLookupType(JNDIConnector.STRING_LOOKUP);          
    session.getLogin().setTableQualifier(schema);
    Bye,
    Lumir

  • Trying to debug Worklist app with JDeveloper

    We managed to get the worklistapp compiling under JDeveloper. Now, I'd like to debug it.
    In order to debug (by running in the OC4J container within JDeveloper), it looks like I have to run the worklistapp as a remote client (specifying REMOTE_CLIENT or SOAP_CLIENT in the BaseServlet's init function). I used REMOTE_CLIENT. I also updated wf_client_config.xml and included the ORACLE_HOME/bpel/system/services/config directory in the classpath.
    When I try to run the worklist app from JDeveloper, I get a null ptr exception (the line 'wfSvcClient.getAuthorizationService(idCtx);' is returning a null value for the authorization service):
    Source breakpoint occurred at line 660 of TaskList.java.
    07/01/30 16:57:37 java.lang.NullPointerException
    07/01/30 16:57:37      at worklistapp.servlets.TaskList.checkTabsToDisplay(TaskList.java:669)
    07/01/30 16:57:37      at worklistapp.servlets.TaskList.handleRequest(TaskList.java:122)
    07/01/30 16:57:37      at worklistapp.servlets.BaseServlet.doGet(BaseServlet.java:144)
    07/01/30 16:57:37      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    07/01/30 16:57:37      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    07/01/30 16:57:37      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    07/01/30 16:57:37      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    07/01/30 16:57:37      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    07/01/30 16:57:37      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    07/01/30 16:57:37      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    07/01/30 16:57:37      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    07/01/30 16:57:37      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    07/01/30 16:57:37      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    07/01/30 16:57:37      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    07/01/30 16:57:37      at java.lang.Thread.run(Thread.java:595)
    I also tried to use the soap client (SOAP_CLIENT in BaseServlet's init()), and I get this exception even before logging into the worklistapp:
    <2007-01-30 17:05:18,001> <ERROR> <oracle.bpel.services.workflow> <::>
    java.lang.NullPointerException
         at oracle.bpel.services.workflow.verification.impl.VerificationService.getWorkflowContextJAXBObject(VerificationService.java:1952)
         at oracle.bpel.services.workflow.verification.impl.VerificationService.getWorkflowContextElement(VerificationService.java:1972)
         at oracle.bpel.services.workflow.user.client.AbstractDOMUserMetadataServiceClient.createBaseType(AbstractDOMUserMetadataServiceClient.java:675)
         at oracle.bpel.services.workflow.user.client.AbstractDOMUserMetadataServiceClient.getPublicPreferences(AbstractDOMUserMetadataServiceClient.java:620)
         at worklistapp.servlets.BaseServlet.initApplicationPreferences(BaseServlet.java:555)
         at worklistapp.servlets.BaseServlet.validateSession(BaseServlet.java:185)
         at worklistapp.servlets.BaseServlet.doGet(BaseServlet.java:142)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    <::> ORABPEL-30721
    <::>
    <::> Error in invoking user metadata service operation.
    <::> An client side error occured in invoking the user metadata service operation getPublicPreferences.
    <::> Please check the exception error stack to identify the error. Contact oracle support if error is not fixable.
    <::>
    I did start up the user metadata services and runtime config services(I can see all the soap endpoints for the workflow services from a browser). But the worklist app doesn't seem to connect to the remote server. I did update my wf_client_config.xml to point to the remote server on which BPEL is located. And the wf_client_config.xml file is in the classpath.
    If I deploy the worklist app on the server with bpel (specifying the parent as 'orabpel', it all works fine). I just can't get it working as a remote client.
    So, any suggestions? I've been looking at threads on this forum to get to this point, but now I'm stuck.
    Thanks,
    Sachin

    I thought I'd ping this thread to see if anyone has been able to debug the Worklist application with JDeveloper. We are trying to customize the worklist application, and being able to use JDeveloper to debug would greatly help out.
    However, I have still been unable to get the worklist application to be able to connect to the workflow services remotely via the SOAP_CLIENT:
    wfSvcClient = WorkflowServiceClientFactory.getWorkflowServiceClient(
    WorkflowServiceClientFactory.SOAP_CLIENT);
    I've played around with the classpath to make sure I have all the jars (based on other similar threads in this forum), but have not had any luck yet.
    From a web browser, I can specify the SOAP endpoint to the Workflow services, and am able to call the service in the browser.
    I updated my wf_client_config.xml file to point to the endpoints. e.g:
    <taskQueryService>
    <soapEndPoint>http://myserver:8888/integration/services/TaskQueryService/TaskQueryService</soapEndPoint>
    </taskQueryService>
    Thanks for any help,
    Sachin
    The debug output:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\jdev\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config>
    C:\jdev\jdk\bin\javaw.exe -client -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=1690 -classpath C:\jdev\j2ee\home\oc4j.jar;C:\jdev\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\jdev\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Listening for transport dt_socket at address: 1690
    Debugger connected to local process.
    Jun 1, 2007 5:22:29 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Jun 1, 2007 5:22:29 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 21594 ms.
    Target URL -- http://192.168.89.52:8988/BPEL%20Samples-WorkListApplication-context-root/login.jsp
    07/06/01 17:22:40 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized
    WARNING: Code-source C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\j2ee\home\jazncore.jar (from <classpath> in C:\work\ProjectLaguna\dev\WorkItemList\WorkListApplcation\public_html) has the same filename but is not identical to /C:/jdev/j2ee/home/jazncore.jar (from <code-source> in META-INF/boot.xml in C:\jdev\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.BPEL Samples-WorkListApplication-webapp:0.0.0.
    WARNING: Code-source C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\diagnostics\lib\ojdl.jar (from manifest of /C:/work/ProjectLaguna/ThirdParty/Oracle/SOA/10.1.3.1/j2ee/home/jazncore.jar) has the same filename but is not identical to /C:/jdev/diagnostics/lib/ojdl.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.BPEL Samples-WorkListApplication-webapp:0.0.0.
    WARNING: Code-source C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\lib\dms.jar (from manifest of /C:/work/ProjectLaguna/ThirdParty/Oracle/SOA/10.1.3.1/j2ee/home/jazncore.jar) has the same filename but is not identical to /C:/jdev/lib/dms.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.BPEL Samples-WorkListApplication-webapp:0.0.0.
    WARNING: Code-source C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\webservices\lib\orasaaj.jar (from <classpath> in C:\work\ProjectLaguna\dev\WorkItemList\WorkListApplcation\public_html) has the same filename but is not identical to /C:/jdev/webservices/lib/orasaaj.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\jdev\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.BPEL Samples-WorkListApplication-webapp:0.0.0.
    WARNING: Code-source C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\j2ee\home\lib\pcl.jar (from manifest of /C:/work/ProjectLaguna/ThirdParty/Oracle/SOA/10.1.3.1/j2ee/home/oc4j.jar) has the same filename but is not identical to /C:/jdev/j2ee/home/lib/pcl.jar (from system property java.class.path). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.BPEL Samples-WorkListApplication-webapp:0.0.0.
    07/06/01 17:22:42 Classpath: C:\jdev\jdk\jre\lib\rt.jar;C:\jdev\jdk\jre\lib\jsse.jar;C:\jdev\jdk\jre\lib\jce.jar;C:\jdev\jdk\jre\lib\charsets.jar;C:\jdev\jdk\jre\lib\ext\dnsns.jar;C:\jdev\jdk\jre\lib\ext\localedata.jar;C:\jdev\jdk\jre\lib\ext\sunjce_provider.jar;C:\jdev\jdk\jre\lib\ext\sunpkcs11.jar;C:\jdev\j2ee\home\oc4j-api.jar;C:\jdev\j2ee\home\lib\oc4j-unsupported-api.jar;C:\jdev\j2ee\home\lib\activation.jar;C:\jdev\j2ee\home\lib\mail.jar;C:\jdev\j2ee\home\lib\persistence.jar;C:\jdev\j2ee\home\lib\ejb30.jar;C:\jdev\j2ee\home\lib\ejb.jar;C:\jdev\j2ee\home\lib\javax77.jar;C:\jdev\j2ee\home\lib\javax88.jar;C:\jdev\j2ee\home\lib\servlet.jar;C:\jdev\j2ee\home\lib\jms.jar;C:\jdev\j2ee\home\lib\jta.jar;C:\jdev\j2ee\home\lib\jacc-api.jar;C:\jdev\j2ee\home\lib\connector.jar;C:\jdev\j2ee\home\lib\jmx_remote_api.jar;C:\jdev\j2ee\home\lib\jax-qname-namespace.jar;C:\jdev\webservices\lib\jaxr-api.jar;C:\jdev\webservices\lib\jaxrpc-api.jar;C:\jdev\webservices\lib\saaj-api.jar;C:\jdev\webservices\lib\jws-api.jar;C:\jdev\j2ee\home\lib\oc4j-internal.jar;C:\jdev\j2ee\home\lib\oems-jms-oc4j.jar;C:\jdev\j2ee\home\lib\oems-jms-client.jar;C:\jdev\j2ee\home\lib\oems-jms-server.jar;C:\jdev\j2ee\home\lib\oc4j-schemas.jar;C:\jdev\j2ee\home\lib\ojsp.jar;C:\jdev\j2ee\home\lib\oc4j_orb.jar;C:\jdev\j2ee\home\lib\iiop_support.jar;C:\jdev\j2ee\home\lib\orbbase.jar;C:\jdev\j2ee\home\iiop_gen_bin.jar;C:\jdev\j2ee\home\lib\jmxcluster.jar;C:\jdev\j2ee\home\jaccprovider.jar;C:\jdev\javavm\lib\jasper.zip;C:\jdev\j2ee\home\lib\adminclient.jar;C:\jdev\opmn\lib\optic.jar;C:\jdev\j2ee\home\jacc-spi.jar;C:\jdev\j2ee\home\jazncore.jar;C:\jdev\j2ee\home\jazn.jar;C:\jdev\jlib\ospnego.jar;C:\jdev\jlib\ldapjclnt10.jar;C:\jdev\webservices\lib\wsserver.jar;C:\jdev\webservices\lib\wsif.jar;C:\jdev\webservices\lib\orawsmetadata.jar;C:\jdev\webservices\lib\orajaxr.jar;C:\jdev\jlib\jssl-1_1.jar;C:\jdev\jlib\ojmisc.jar;C:\jdev\toplink\jlib\toplink-oc4j.jar;C:\jdev\diagnostics\lib\ojdl2.jar;C:\jdev\xqs\lib\xqs-api.jar;C:\jdev\xqs\lib\xds.jar;C:\jdev\jdev\lib\jdev-oc4j-embedded.jar;C:\jdev\j2ee\home\lib\pcl.jar;C:\jdev\j2ee\home\lib\ext;C:\jdev\j2ee\home\lib\ext\adfperfhandler.jar;C:\jdev\lib\dmsapp.jar;C:\jdev\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\applications\admin_ejb.jar;C:\jdev\j2ee\home\lib\scheduler.jar;C:\jdev\jdev\lib\jdev-rt.jar;C:\jdev\jdev\lib\ojc.jar;C:\jdev\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\connectors\datasources\datasources\datasources.jar;C:\jdev\BC4J\lib;C:\jdev\BC4J\lib\adfbinding.jar;C:\jdev\BC4J\lib\adfcm.jar;C:\jdev\BC4J\lib\adfm.jar;C:\jdev\BC4J\lib\adfmweb.jar;C:\jdev\BC4J\lib\adfs-jazn.jar;C:\jdev\BC4J\lib\adfs.jar;C:\jdev\BC4J\lib\adfshare.jar;C:\jdev\BC4J\lib\bc4jct.jar;C:\jdev\BC4J\lib\bc4jctejb.jar;C:\jdev\BC4J\lib\bc4jdomorcl.jar;C:\jdev\BC4J\lib\bc4jimdomains.jar;C:\jdev\BC4J\lib\bc4jmt.jar;C:\jdev\BC4J\lib\bc4jmtejb.jar;C:\jdev\BC4J\lib\bc4jsyscat.jar;C:\jdev\BC4J\lib\collections.jar;C:\jdev\jlib\commons-cli-1.0.jar;C:\jdev\mds\lib\concurrent.jar;C:\jdev\mds\lib\mdsrt.jar;C:\jdev\jlib\share.jar;C:\jdev\jlib\regexp.jar;C:\jdev\jlib\xmlef.jar;C:\jdev\BC4J\jlib\adfmtl.jar;C:\jdev\BC4J\jlib\adfui.jar;C:\jdev\BC4J\jlib\adf-connections.jar;C:\jdev\BC4J\jlib\dc-adapters.jar;C:\jdev\ord\jlib\ordim.jar;C:\jdev\ord\jlib\ordhttp.jar;C:\jdev\jlib\ojmisc.jar;C:\jdev\jlib\jdev-cm.jar;C:\jdev\lib\xsqlserializers.jar;C:\jdev\diagnostics\lib\ojdl.jar;C:\jdev\lib\dms.jar;C:\jdev\jdbc\lib\ojdbc14dms.jar;C:\jdev\opmn\lib\ons.jar;C:\jdev\jdbc\lib\ocrs12.jar;C:\jdev\rdbms\jlib\aqapi.jar;C:\jdev\j2ee\home\lib\ojms-provider.jar;C:\jdev\jdbc\lib\orai18n.jar;C:\jdev\lib\xmlparserv2.jar;C:\jdev\lib\xml.jar;C:\jdev\lib\xmlmesg.jar;C:\jdev\lib\xsu12.jar;C:\jdev\lib\xquery.jar;C:\jdev\jlib\osdt_core.jar;C:\jdev\jlib\osdt_cert.jar;C:\jdev\jlib\osdt_xmlsec.jar;C:\jdev\jlib\osdt_wss.jar;C:\jdev\jlib\osdt_saml.jar;C:\jdev\jlib\ojpse.jar;C:\jdev\jlib\oraclepki.jar;C:\jdev\toplink\jlib\toplink.jar;C:\jdev\toplink\jlib\antlr.jar;C:\jdev\toplink\jlib\toplink-essentials.jar;C:\jdev\webservices\lib\wsclient.jar;C:\jdev\webservices\lib\orasaaj.jar;C:\jdev\webservices\lib\xsdlib.jar;C:\jdev\webservices\lib\mdds.jar;C:\jdev\webservices\lib\relaxngDatatype.jar;C:\jdev\javacache\lib\cache.jar;C:\jdev\lib\xschema.jar;C:\jdev\webservices\lib\soap.jar;C:\jdev\sqlj\lib\runtime12.jar;C:\jdev\sqlj\lib\translator.jar;C:\jdev\webservices\lib\orawsdl.jar;C:\jdev\j2ee\home\applib;C:\jdev\j2ee\home\jsp\lib\taglib;C:\jdev\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\jdev\lib\dsv2.jar;C:\jdev\j2ee\home\lib\http_client.jar;C:\jdev\j2ee\home\lib\jgroups-core.jar;C:\work\ProjectLaguna\dev\WorkItemList\WorkListApplcation\public_html;C:\work\ProjectLaguna\dev\WorkItemList\WorkListApplcation\classes;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\bpel\lib\bpm-infra.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\bpel\lib\orabpel-common.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\bpel\lib\orabpel-thirdparty.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\bpel\lib\orabpel.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\j2ee\home\jazncore.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\diagnostics\lib\ojdl.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\lib\dms.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\j2ee\home\oc4jclient.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\bpel\lib\bicmn.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\bpel\lib\bipres.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\bpel\lib\uix2.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\webservices\lib\orasaaj.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\j2ee\home\oc4j.jar;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\j2ee\home\lib\pcl.jar;C:\product\10.1.3.1\OracleAS_1\bpel\system\services\config;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\bpel\system\services\lib\bpm-services.jar;C:\product\10.1.3.1\OracleAS_1\bpel\system\services\schema;C:\work\ProjectLaguna\ThirdParty\Oracle\SOA\10.1.3.1\webservices\client_lib\wsclient_extended.jar
    07/06/01 17:22:48 log4j:WARN No appenders could be found for logger (collaxa.cube.services).
    07/06/01 17:22:48 log4j:WARN Please initialize the log4j system properly.
    <2007-06-01 17:22:48,504> <ERROR> <oracle.bpel.services.workflow> <::>
    java.lang.NullPointerException
         at oracle.bpel.services.workflow.verification.impl.VerificationService.getWorkflowContextJAXBObject(VerificationService.java:1952)
         at oracle.bpel.services.workflow.verification.impl.VerificationService.getWorkflowContextElement(VerificationService.java:1972)
         at oracle.bpel.services.workflow.user.client.AbstractDOMUserMetadataServiceClient.createBaseType(AbstractDOMUserMetadataServiceClient.java:675)
         at oracle.bpel.services.workflow.user.client.AbstractDOMUserMetadataServiceClient.getPublicPreferences(AbstractDOMUserMetadataServiceClient.java:620)
         at worklistapp.servlets.BaseServlet.initApplicationPreferences(BaseServlet.java:556)
         at worklistapp.servlets.BaseServlet.validateSession(BaseServlet.java:183)
         at worklistapp.servlets.BaseServlet.doGet(BaseServlet.java:140)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    <::> ORABPEL-30721
    <::>
    <::> Error in invoking user metadata service operation.
    <::> An client side error occured in invoking the user metadata service operation getPublicPreferences.
    <::> Please check the exception error stack to identify the error. Contact oracle support if error is not fixable.
    <::>
    <::>      at oracle.bpel.services.workflow.user.client.AbstractDOMUserMetadataServiceClient.getPublicPreferences(AbstractDOMUserMetadataServiceClient.java:630)
    <::>      at worklistapp.servlets.BaseServlet.initApplicationPreferences(BaseServlet.java:556)
    <::>      at worklistapp.servlets.BaseServlet.validateSession(BaseServlet.java:183)
    <::>      at worklistapp.servlets.BaseServlet.doGet(BaseServlet.java:140)
    <::>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    <::>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    <::>      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
    <::>      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    <::>      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
    <::>      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
    <::>      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
    <::>      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    <::>      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    <::>      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    <::>      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    <::>      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    <::>      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    <::>      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    <::>      at java.lang.Thread.run(Thread.java:595)
    <::> Caused by: java.lang.NullPointerException
    <::>      at oracle.bpel.services.workflow.verification.impl.VerificationService.getWorkflowContextJAXBObject(VerificationService.java:1952)
    <::>      at oracle.bpel.services.workflow.verification.impl.VerificationService.getWorkflowContextElement(VerificationService.java:1972)
    <::>      at oracle.bpel.services.workflow.user.client.AbstractDOMUserMetadataServiceClient.createBaseType(AbstractDOMUserMetadataServiceClient.java:675)
    <::>      at oracle.bpel.services.workflow.user.client.AbstractDOMUserMetadataServiceClient.getPublicPreferences(AbstractDOMUserMetadataServiceClient.java:620)
    <::>      ... 18 more
    <2007-06-01 17:22:48,536> <ERROR> <oracle.bpel.services.workflow> <::>
    java.lang.NullPointerException
         at oracle.bpel.services.workflow.verification.impl.VerificationService.getWorkflowContextJAXBObject(VerificationService.java:1952)
         at oracle.bpel.services.workflow.verification.impl.VerificationService.getWorkflowContextElement(VerificationService.java:1972)
         at oracle.bpel.services.workflow.user.client.AbstractDOMUserMetadataServiceClient.createBaseType(AbstractDOMUserMetadataServiceClient.java:675)
         at oracle.bpel.services.workflow.user.client.AbstractDOMUserMetadataServiceClient.getPublicPreferences(AbstractDOMUserMetadataServiceClient.java:620)
         at worklistapp.servlets.BaseServlet.initApplicationPreferences(BaseServlet.java:556)
         at worklistapp.servlets.BaseServlet.validateSession(BaseServlet.java:183)
         at worklistapp.servlets.BaseServlet.doGet(BaseServlet.java:140)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)

  • TopLink on WebLogic or oracle.toplink.PersistenceProvider

    Hy.
    I have applied patch 5KXF to add toplink 11g on WebLogic 10.3.
    Now, in BEA_HOME\patch_wls1030\patch_jars\ there is toplink.jar.
    But how can I use it?
    Inside toplink.jar there is file META-INF\services\META-INF\services\javax.persistence.spi.PersistenceProvider.
    I assume that content of this file is the name of the implementation class.
    It is "oracle.toplink.PersistenceProvider".
    But when I put this name in persistence.xml and try to deploy my EAR, this message appears
    =====================================================================================================
    weblogic.deployment.EnvironmentException: Error processing persitence unit toplink of module toplink.jar: Error instantiating the Persistenc
    e Provider class oracle.toplink.essentials.PersistenceProvider of the PersistenceUnit toplink: java.lang.ClassNotFoundException: oracle.topl
    ink.essentials.PersistenceProvider
    at weblogic.deployment.PersistenceUnitInfoImpl.createEntityManagerFactory(PersistenceUnitInfoImpl.java:322)
    at weblogic.deployment.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:123)
    at weblogic.deployment.AbstractPersistenceUnitRegistry.storeDescriptors(AbstractPersistenceUnitRegistry.java:331)
    at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:245)
    at weblogic.deployment.ModulePersistenceUnitRegistry.<init>(ModulePersistenceUnitRegistry.java:63)
    =====================================================================================================
    The persistence.xml file looks like
    =====================================================================================================
    <persistence-unit name="toplink">
    <provider>
    oracle.toplink.essentials.PersistenceProvider
    </provider>
    <jta-data-source>jdbc/miroslav_rehirDS</jta-data-source>
    </persistence-unit>
    =====================================================================================================
    One thing more .... In the filesistem I can't find class oracle.toplink.PersistenceProvider.
    On the other hand it is OK to put
    <provider>
    org.eclipse.persistence.jpa.PersistenceProvider
    </provider>
    Thanks four your replies,
    Miroslav

    Miroslav,
    You may be interested in the latest release of Oracle WebLogic Server.
    See the recent OTN post from 20110115 detailing the latest release of Oracle WebLogic Server and some retesting of the previous issues related to JSR-317 JPA 2.0 support below.
    11g Release 1 Patch Set 3 (WLS 10.3.4)
    The latest release of Oracle WebLogic Server has been available on OTN at the following location since 20110115.
    http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
    This release provides support for JSR-317 JPA 2.0 container managed applications using the QWG8 patch or a manual prepending classpath change.
    In 10.3.3.0 you were required to use the FilteringClassLoader via the *<wls:prefer-application-packages>* addition to your application managed persistence unit - this workaround as well as the persistence.xml renaming one is now fully deprecated and not required in 10.3.4.0 for both application and container managed persistence contexts.
    As of 20110115 the 5 outstanding issues below look to be fixed by applying the http://download.oracle.com/docs/cd/E17904_01/web.1111/e13720/using_toplink.htm#EJBAD1309 patch for QWG8 or manually prepending to the WebLogic 10.3.4.0 server classpath.
    commEnv.cmd: line 67
    @rem Set BEA Home
    set BEA_HOME=C:\opt\wls1034r20110115
    @rem Enable JPA 2.0 functionality on WebLogic Server 10.3.4 with the following patch line for commEnv.cmd:67
    set PRE_CLASSPATH=%BEA_HOME%\modules\javax.persistence_1.0.0.0_2-0-0.jar;%BEA_HOME%\modules\com.oracle.jpa2support_1.0.0.0_2-0.jar
    A JPA 2.0 EE application using EclipseLink as the JPA2 persistence provider on WebLogic is detailed in the analysis section below1) JPA 2.0 XSD parsing - verified
    2) New JPA 2.0 schema elements like <shared-cache-mode>NONE</shared-cache-mode> - verified
    3) JPA 2.0 runtime API like a entityManager.getMetamodel(); call on the Servlet or Stateless session bean - verified
    4) JPA 2.0 weaving/instrumentation - this will require a more detailed lazy model and more debugging to fully verify
    5) Dependency Injection of a container managed JPA 2.0 entityManager on a EJB component like a stateless session bean - verified
    http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/weblogic#Enabling_JPA2_support
    OTN downloadhttp://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
    Patching
    http://download.oracle.com/docs/cd/E18476_01/doc.220/e18480/weblogicchap.htm
    Documentationhttp://download.oracle.com/docs/cd/E17904_01/web.1111/e13852/toc.htm
    Supported Oracle WebLogic Server Versionshttp://download.oracle.com/docs/cd/E15315_06/help/oracle.eclipse.tools.weblogic.doc/html/SupportedServerVersions.html
    TopLink JPA 2.0 Specific documentation/patchinghttp://download.oracle.com/docs/cd/E17904_01/web.1111/e13720/using_toplink.htm#EJBAD1309
    EclipseLink Wiki: JPA 2.0 using EclipseLink on WebLogic analysis (XSD, Weaving, DI of @PersistenceContext)http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/weblogic#Enabling_JPA2_support
    thank you
    /Michael O'Brien
    http://www.eclipselink.org

  • How to tell if program is launched from JAR?

    I have a program that needs to launch itself at some point in the program. The class is called CalcSolidsWindow.
    The only problem is that I launch it from Eclipse to debug, and it's not in a JAR. However, I pack it into a JAR to distirbute it. To do so, I put this into the code:
    if (runningInJar) {
        Runtime.getRuntime().exec("java -jar [...JAR name...] [...arguments...]"); //JAR launch
    } else {
        Runtime.getRuntime().exec("java CalcSolidsWindow [...arguments...]"); //Non-JAR launch (mainly debug...)
    }The problem is how to set the runningInJar vairable. I've tried:
    File runFile = new File(CalcSolidsWindow.class.getProtectionDomain().getCodeSource().getLocation().getPath()).getCanoncialFile();
    boolean runningInJar = runFile.getName().endsWith(".jar");However, that does not yield the correct result. After printing some stuff to the console, I realize that runFile is just the directory in which the program is running.
    Is there a way to determine if a program was launched from a JAR or not? Thanks in advance for anyone's help!
    Edited by: Vetruvet on Oct 22, 2009 10:25 AM

    Vetruvet wrote:
    I have a program that needs to launch itself at some point in the program. The class is called CalcSolidsWindow.
    The only problem is that I launch it from Eclipse to debug, and it's not in a JAR. I am almost certain that Eclipse can do debugging for Jars, so why ever run it as loose class files?

  • 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

  • Error while deploying Spring PetClinic Demo App(with Toplink OR )on OC4J

    Hi All,
    I am trying to deploy sample app provided with spring framework on oc4j with Toplink as my OR layer, but i am facing issues with the deployment
    App fails to start with error finding "org.springframework.orm.toplink.support.CommonsLoggingSessionLog"
    this is found in toplink-applicatio context.xml file
    i found that this class is missing in spring framework.
    please help to get the jar files
    Thanks
    Raghavendra

    i got the class files. actually in 10.1.3 these class files are put in a different jar file spring-toplink.jar
    The Main issue here is that 10.1.3 toplink production is yet to be integrated into spring 2.
    petClinic will work fine if we use 10.1.3 developer preview edition
    Thanks
    Raghavendra

Maybe you are looking for

  • Creating a Photo Album In Dreamweaver MX 2004

    I followed the steps to create a web photo album using Dreamweaver MX 2004 and Fireworks and it creates it. However, I can't get it to display on the web when I upload it. It displays the message "Page can not be found". Please help!

  • Removing icons from menu bar in webi

    Hi Bo gurus, I have a user , user donot want to see  track,filter,drill,scenario icons  in right side top of the webi report,Is there any way to achive this. Any suggestions would be appreiciated. Regards, Mahesh

  • Printing a report/Problem

    Can you help please? I have a report that I am running in Oracle apps , on the screen it shows 17 record but when I click the print button I get 34 records printed. Can some help please if you can send me an e-mail Thank you alpha

  • Flash CS6 does not not create an .app file when I Output as application with runtime embedded

    I am attempting to create an application with runtime embedded, but the process keeps failing without throwing an error. Specifically: in Air Settings, I select Output as: Application with runtime embedded. When I build it this way, Flash tells me th

  • Wish to store and retrieve a structure

    Dear Friends, I am new to BerkeleyDB .I need some clarifaction in how to use the get and put api's . I want to know when to use the ulen and DB_DBT_USERMEM. when should i use,i mean when to use while retriving and storing. I will be happy to get a si