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.

Similar Messages

  • 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

  • ADF Toplink Deployment bindings issue

    Hi,
    I have an ADF / TopLink Application that works just fine when testing inside JDeveloper. The issue is when I create an EAR file and deploy it on Application Server 10.1.3 I am getting the following error:
    Mar 9, 2008 12:43:43 PM com.sun.faces.application.ApplicationAssociate createAndMaybeStoreManagedBeans
    SEVERE: Managedbean WelcomeBean could not be created Can't set managed bean property: 'bindings'.
    javax.faces.FacesException: Can't set managed bean property: 'bindings'.
         at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:596)
         at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:253)
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
         at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
         at oracle.adfinternal.view.faces.el.AdfFacesVariableResolver.resolveVariable(AdfFacesVariableResolver.java:40)
         at oracle.adfinternal.view.faces.model.VariableResolverUtils$JspResolver.resolveVariable(VariableResolverUtils.java:79)
         at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
         at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
         at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
         at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
         at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
         at oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:85)
         at claimscoreboardjspx._jspService(_claimscoreboard_jspx.java:361)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
         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.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:287)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         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 com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
         at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:578)
         ... 53 moreAny help is appreciated. Thanks

    I have the following jar files that are added through JDeveloper in my EAR:
    standard.jar
    share.jar
    log4j-1.2.12.jar
    jstl.jar
    jsf-impl.jar
    jsf-api.jar
    industrial-adf-faces-impl.jar
    industrial-adf-faces-api.jar
    dc-adapters.jar
    custComps.jar
    commons-logging.jar
    commons-logging-api.jar
    commons.digester.jar
    commons-collections.jar
    commons-beanutils.jar
    adf-faces-impl.jar
    adf-faces-api.jar
    adf-controller.jarPlus I have the following set in my application.xml file of the serever
    <!-- Toplink supporting classes -->
      <library path="../../../toplink/jlib/toplink.jar"/>
      <library path="../../../toplink/jlib/antlr.jar"/>Thanks

  • Line Breaks in JAR Manifest

    I'm currently using a maven plug-in to generate a manifest file using the java.util.jar API. When creating attributes in the manifest, the plug-in inserts line breaks in comma-separated lists automatically to make the Manifest easier to read. When the manifest is written using Manifest.write(OutputStream), line breaks are added every 72 characters despite the fact that the attribute value already contains line breaks.
    Should this be reported as a bug or is there another way to format the manifest so that the line breaks don't destroy the readability.
    From the generated manifest:
    Bundle-ClassPath: lib\spring-beans-2.0.7.jar,
    lib\commons-logging-1.
    1.jar,
    lib\log4j-1.2.14.jar,
    lib\spring-core-2.0.7.jar,
    lib\spr
    ing-context-2.0.7.jar,
    lib\spring-dao-2.0.7.jar,

    Manifest lines must not exceed 72 bytes; see
    http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html#JAR%20Manifest
    Presumably Manifest.write could try harder to break at commas. You could file an RFE if this is really important and there's not already a similar issue.
    Thanks,
    Dave

  • Jar: Manifest-Attribute "Class-Path"

    I've got a problem with the Class-Path-attribute of the JARs manifest-file. So I've written a real simple application to test where the problems occure... but even this trivial app does not work!
    The execution starts at "Starter.java":
    public class Starter{
          public static void main(String args[]){
                packageOne.Caller.callWriter();
    }The class "Caller" is in a JAR ("Caller.jar") in the same directory as Starter.java.
    Caller.java:
    package packageOne;
    public class Caller{
          public static void callWriter(){
                packageTwo.Writer.write("Write this");
    }The class "Writer" is in a JAR ("Writer.jar") in the same directory as Starter.java and Caller.jar.
    Writer.java:
    package packageTwo;
    public class Writer{
          public static void write(String message){
                System.out.println(message);
    }The file Caller.jar consists of Caller.class and the Manifest.mf. The package-structur/the path seams to be all right.
    The file Writer.jar consists of Writer.class and the Manifest.mf. The package-structur/the path seams to be all right.
    If I invoke the Starter with:
    java Starter -classpath Caller.jar;Writer.jareverything's fine.
    Now, I added the following line to the Manifest.mf of Caller.jar:
    Class-Path: Writer.jar(with one empty line between Manifest-Version: 1.0 and the new line.
    So... shouldn't it be possible now, to invoke the application with:
    java Starter -classpath Caller.jar ???
    It doesn't work. So: what have I misunderstood?
    (The error message is:
    Exception in thread "main" java.lang.NoClassDefFoundError: packageTwo/Writer
          at packageOne.Caller.callWriter(packageOne/Caller.java:5)
          at Starter.main(Starter.java:3)

    Hmmm, I tested it and here are the command I ran and their results. Try doing the same on your computer:aleph% mkdir packageOne
    aleph% mkdir packageTwoThat created the directories.aleph% cat > Starter.java
    public class Starter{
          public static void main(String args[]){
                packageOne.Caller.callWriter();
    aleph% cat > packageOne/Caller.java
    package packageOne;
    public class Caller{
          public static void callWriter(){
                packageTwo.Writer.write("Write this");
    aleph% cat > packageTwo/Writer.java
    package packageTwo;
    public class Writer{
          public static void write(String message){
                System.out.println(message);
    }That created the source files: Starter.java in the current directory, Caller.java under packageOne and Writer.java under packageTwo. Next the compiling and creating the manifest file:aleph% javac Starter.java
    aleph% cat > MF
    Class-Path: Writer.jarThat created additional info to be included in manifest file and put it in a file called MF.
    Then I package "caller.jar" with the manifest and "Writer.jar" without it:aleph% jar -cmf MF caller.jar packageOne
    aleph% jar -cf Writer.jar packageTwoDelete the package* directories so java wont get confused...aleph% rm -r package*And finally run the thing. Remember that the path separator is : in unix but ; in DOS, if that is what you are using.aleph% java -cp .:caller.jar Starter
    Write thisNo problems anywhere. What are the steps you did?

  • 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

  • Jar executable issue after jvm update

    I created a small demo application and bundled my classes and media files in a jar executable file. Everything was fine until I updated J2SE from 1.5.0 to 1.6.0_01.
    The application now starts, gets its input normally but soon after hangs, and the Swing GUI doesn't show up anymore.
    The jar file contains 4 packages (one of them contains the main class) and this simple manifest file:
    Main-Class: myapp.myAppLauncher
    Classpath: .\myapp.jar
    I created the jar as follows:
    jar cvfm gdv.jar Manifest.txt myapp mypackage2 mypackage3 mypackage4
    I recompiled the source before creating the jar archive, and if I launch the application from the console I see no difference from before. The problem is only for the jar version.

    Manually download and install the Java 4 update http://www.apple.com/downloads/macosx/apple/application_updates/javaformacosx105 update4.html, and Safari 4.0.1 http://www.apple.com/safari/download/ Run Software update, install anything that pop up, repair permissions, and restart. That should fix your problem.

  • 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

  • JAR manifest and -Xmx

    Hello all,
    Could anyone please tell me is there any way to specify -Xmx parameter in JAR Manifest file?
    Regards,
    Vladimir Ikryanov

    Is it possible at all to set VM options from withinmanifest files?
    No.Ok, thanks. It's a pity, isn't it?
    I think I'll try Java Web Start. You can set VM options there as much as I know. And maybe I try to rewrite the app so that it uses less memory.
    Thanks for your answer again!
    -Puce
    Message was edited by:
    Puce

  • Toplink descriptor migration issues in JDeveloper 10.1.3.5 - 11

    I'm having several projects developed with TL as a PM in JDeveloper 10.1.3.5. Descriptors and toplink-ejb.jar file are parsed correctly, but when I migrate projects to 11G Toplink parsing breaks and it is not able to display EJBs with the following error:
    Local Exception Stack:
    Exception [TOPLINK-6044] (Oracle TopLink - 11g Release 1 (11.1.1.5.0) (Build 110305)): oracle.toplink.exceptions.QueryException
    Exception Description: The primary key read from the row [DatabaseRecord()] during the execution of the query was detected to be null. Primary keys must not contain null.
    Query: ReadAllQuery(oracle.toplink.workbench.mappingsmodel.database.MWLegacyTable)
         at oracle.toplink.exceptions.QueryException.nullPrimaryKeyInBuildingObject(QueryException.java:837)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:418)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:748)
         at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(DatabaseQueryMechanism.java:170)
         at oracle.toplink.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:477)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:679)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
         at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:445)
         at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2265)
         at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1079)
         at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1063)
         at oracle.toplink.internal.indirection.NoIndirectionPolicy.valueFromQuery(NoIndirectionPolicy.java:264)
         at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRowInternal(ForeignReferenceMapping.java:1377)
         at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow(ForeignReferenceMapping.java:1306)
         at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:279)
         at oracle.toplink.sdk.SDKAggregateObjectMapping.buildCompositeObject(SDKAggregateObjectMapping.java:58)
         at oracle.toplink.mappings.foundation.AbstractCompositeObjectMapping.valueFromRow(AbstractCompositeObjectMapping.java:231)
         at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:1117)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:279)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:584)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:441)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:391)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:511)
         at oracle.toplink.queryframework.ReadObjectQuery.executeObjectLevelReadQuery(ReadObjectQuery.java:433)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:874)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:679)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:835)
         at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:397)
         at oracle.toplink.internal.sessions.AbstractSession.internalExecuteQuery(AbstractSession.java:2265)
         at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1079)
         at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1063)
         at oracle.toplink.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1022)
         at oracle.toplink.internal.sessions.AbstractSession.readObject(AbstractSession.java:2827)
         at oracle.toplink.workbench.mappingsio.legacy.PersistenceTools50.readMWProjectNamed(PersistenceTools50.java:331)
         at oracle.toplink.workbench.mappingsio.legacy.LegacyIOFacade.read50Project(LegacyIOFacade.java:29)
         at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(ProjectReader.java:296)
         at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:110)
         at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:64)
         at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:60)
         at oracle.toplink.workbench.addin.application.ProjectContext.buildProject(ProjectContext.java:160)
         at oracle.toplink.workbench.addin.application.ProjectContext.initialize(ProjectContext.java:440)
         at oracle.toplink.workbench.addin.application.ProjectContext.<init>(ProjectContext.java:106)
         at oracle.toplink.workbench.addin.application.ContextManager.openProject(ContextManager.java:1169)
         at oracle.toplink.workbench.addin.application.ContextManager.openTopLinkMap(ContextManager.java:1218)
         at oracle.toplink.workbench.addin.application.ContextManager.loadProjectContext(ContextManager.java:1068)
         at oracle.toplink.workbench.addin.application.ContextManager.getContext(ContextManager.java:657)
         at oracle.toplink.workbench.addin.ui.view.TopLinkContextViewContextBuilder.topLinkContext(TopLinkContextViewContextBuilder.java:202)
         at oracle.toplink.workbench.addin.ui.view.TopLinkContextViewContextBuilder.openDocument(TopLinkContextViewContextBuilder.java:187)
         at oracle.toplink.workbench.addin.ui.view.ViewContextManager$OpenDocument.run(ViewContextManager.java:1081)
    There was a similar thread here :
    Re: Errors migrating from jDev 10.1.3.4 to jDev 11.2.1
    I did try to migrate to 11.1.1.4.0 and 11.1.1.5.0 - still no luck. All offline databases are present and correctly "connect" to corresponding EJBs in 10.1.3.5.
    Neither I cant find migration matrix/docs that were referred in similar threads. If this is not resolved, we can not chose Jdeveloper as a future IDE at the company...
    Thank you!
    V.

    Hi,
    the web appears to be full of such error messages and some point to the use of named native query vs. named query. So here are some options for you to try
    1. Create a test project in 11g using the same tables and compare the generated code with yours to see a difference
    2. Get a 10.1.3.5 project that you haven't migrated and pass it on to customer support for them to have a try on this.
    +"If this is not resolved, we can not chose Jdeveloper as a future IDE at the company..."+ Actually it doesn't appear to be a JDeveloper issue but a TopLink / EclipseLink issue. Abandoning JDeveloper is like shooting the messenger. Just so you know.
    Frank

  • Classloader isolation and jar manifest Class-Path headers

    I have a system where I am loading a set of jars, each with its own URL classloader. So, Jar a is loaded by Loader A, jar b is loaded by Loader B, and so on.
    Each jar has a Manifest Class-Path entry declaring its dependence on other jars. So in the example above, a puts c.jar in its Class-path, and, let's say, b also puts c.jar in its Class-path, unbeknownst to a.
    Let's say there's a class Foo in c.jar. I want--need--it to be the case that (loader of a.jar == Foo.class.getClassLoader()) from the perspective of classes found in a.jar, and (loader of b.jar == Foo.class.getClassLoader()) from the perspective of classes found in b.jar.
    That is, I want a and b to have their own isolated "copies" of c.jar.
    Instead, what I'm finding is that Foo.class is loaded once, and his loader "leaks" over to the other jar's loader, if that makes any sense.
    Is there any way to accomplish what I am talking about here?
    Laird

    As I understand the question - no.Hi; I think you misunderstand the question.
    The classes are being loaded by the system loader.
    Thus there is no way to seperate them.
    If you want them seperate then you must use an
    explicit class loader to load them.I am using explicit loaders to load them. Let me try again, because I don't think I was clear.
    I have an application that has, let's say, nothing at all in its classpath. That is, it was invoked via "java ApplicationMainClass". No classpath.
    Now that application reads, let's say, a properties file containing a list of URLs that point to jars.
    Now the application creates a new URLClassLoader for each such URL. So if the mythical properties file has ten lines, then I create ten classloaders, each of which points to one and only one URL.
    My problem is, even classes loaded by these isolated, separate classloaders are "leaking" across to other loaders. Remember, the parent classloader of all of these classloaders can't see the jars. Its classpath was empty, remember?
    The issue is that the findLoadedClass() method of java.lang.ClassLoader scans the whole VM to see if a given Class was loaded before, and if it was, then by default that Class is simply returned. But I don't want that behavior.
    Now, I also don't want the behavior of having to load the silly things off disk each and every time. So how do I retain this true multiple classloader isolation?
    Thanks,
    Laird

  • Toplink 9045 Migration Issue

    Hi,
    I am currently migrating my application from WLS7.0 and Toplink903 to WLS8.1sp3 and Toplink9045.
    I am getting the folowing error when i am trying to generate EAR file using weblogic.ejbc
    [java] Local Exception Stack:
    [java] Exception [TOPLINK-14025] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.ejb.De
    ploymentException
    [java] Exception Description: An error occurred while getting mapping during the code generation : [Excep
    tion [TOPLINK-178] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle.toplink.exceptions.DescriptorExce
    ption
    [java] Exception Description: Cannot find mapping for attribute [trade] in entity bean [com.fanniemae.mf.
    jj.persistence.closedTrade.ClosedTradeBean]. The attribute must mapped.]
    [java] Internal Exception: Exception [TOPLINK-178] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): ora
    cle.toplink.exceptions.DescriptorException
    [java] Exception Description: Cannot find mapping for attribute [trade] in entity bean [com.fanniemae.mf.
    jj.persistence.closedTrade.ClosedTradeBean]. The attribute must mapped.
    [java] at oracle.toplink.ejb.DeploymentException.errorGetMappingFromAttribute(DeploymentException.jav
    a:91)
    [java] at oracle.toplink.internal.ejb.cmp.codegen.CmpCodeGenPlatform.getMappingFromAttributeName(CmpC
    odeGenPlatform.java:553)
    [java] at oracle.toplink.internal.ejb.cmp.codegen.CmpCodeGenPlatform.getIndirectionPolicy(CmpCodeGenP
    latform.java:579)
    [java] at oracle.toplink.internal.ejb.cmp.codegen.CmpCodeGenPlatform.createGetMethod(CmpCodeGenPlatfo
    rm.java:320)
    [java] at oracle.toplink.internal.ejb.cmp.codegen.CmpCodeGenPlatform.addContainerManagedAttributesAnd
    Methods(CmpCodeGenPlatform.java:140)
    [java] at oracle.toplink.internal.ejb.cmp.codegen.CmpCodeGenPlatform.generateConcreteClass(CmpCodeGen
    Platform.java:454)
    [java] at oracle.toplink.internal.ejb.cmp.codegen.ConcreteClassGenerator.generateConcreteClass(Concre
    teClassGenerator.java:26)
    [java] at oracle.toplink.internal.ejb.cmp.wls.WlsCMPCodeGenerator.codeGenSubclass(WlsCMPCodeGenerator
    .java:56)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:648)
    [java] at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:587)
    [java] at weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:519)
    [java] at weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:336)
    [java] at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:238)
    [java] at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:197)
    [java] at weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSources(EJB20CMPCompiler.java:88)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:245)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)
    [java] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)
    [java] at weblogic.ejbc20.runBody(ejbc20.java:517)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:146)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:103)
    [java] at weblogic.ejbc.main(ejbc.java:29)
    I am using all the latest jar's and did't understand why i am getting this error. If any one had got the same type of errors please let me know how to solve this issue.
    Thank you.

    First are you using JPA and a persistence.xml with TopLink (TopLink Essentials was the JPA provider I believe) or are you using native TopLink with a sesssions.xml?  WIthout entity changes to support lazy relationships (such as weaving if using JPA) lazy relationships will only work for collection mappings - but these are already set to default to lazy,  If it is JPA, you can configure your entity mappings to be Lazy through annotations or an orm.xml file and let weaving work on your entities, while if using Sessions.xml, you need to make changes to the entities themselves to support lazy relationships as well as set the mappings to be lazy.  This is called indirection in TopLink, and is described here: Understanding Relationship Mappings
    If you are using JPA and a persistence.xml, the migration to EclipseLink should be fairly easy.  See https://wiki.eclipse.org/EclipseLink/Examples/JPA/Migration/TopLinkEssentials for details
    Otherwise it may require package renaming and ensuring that the project was not using deprecated classes, but still should not be too complex.  Migrating from Native TopLink | EclipseLink 2.4.x Understanding EclipseLink has instructions and details.
    If this is not enough to go on, please give more details on what you have. 
    Best Regards,
    Chris

  • JAR startup issue

    When I double-click a JAR file that I make through Eclipse, it doesn't start up. Yet when I run it through Eclipse it does. Why is this? How can I fix it so that it does start up when I double-click it?

    This is an OS issue.Well, not entirely. It's quite possible that Eclipse only produces a jar containing the classes selected, and requires the user to configure the jar's manifest properly to make it an executable jar. And it's quite possible the OP doesn't know what you have to put in a jar file to make it executable.

  • Instant Client 10 Jar File Issue

    I'm following the instructions to install Instant Client 10, but the Jar files won't run on Windows.
    classes12 and ojdbc14 both give me "Failed to load Main-Class manifest attribute....", and when I check the manifest file, this info is in fact missing, along with the classpath.
    The instructions don't indicate anything about this. I'm wondering if I'm missing something here. I have the newest Java installed.

    What exactly are you trying to do? Install Client or execute classes?
    Once you instal your client it is so, if there were no problems on the installation there are no issues to solve.
    Which client did you install? On the Oracle Universal Installer there are several kinds of clients, regular and instant client.
    What do you need this client for?
    Once you have installed, I figure out you are trying to do some java programming, aren't you? How are you trying to use those classes?

Maybe you are looking for

  • Purchase Order with Service Tax and Sales Tax both

    Dear Sir, We have a scenario where we have to make a Purchase Order for buying some Software . In the PO , we need to mention Service-Tax as well as Sales-Tax both . Pl guide us as whether it is possible to have such condition available in SAP , if y

  • Index on a huge table

    there is a table which has 6844153 rows, i am trying to create an index on 3 columns on that table, it is taking forever..please advice

  • PM Orders Basic & schedule finish date

    Hi Experts, I want the basic start & finished date similar to schedule start & finishe date  in any condition.For e.g. if i change the basic start & finished date the schedule start & finished date should become similar to basic start & finish date a

  • PSE10: how to download Raw files from Canon camera? [was:HELP]

    How do I download RAW images from a connon camera on photoshop Elements 10??

  • Sony PS-LS300USB Turntable

    I purchased this turntable about 4 years ago and never tried to download my records. I wish to do this now but can't find the software. I contacted Sony and they told me I can't load that old software because it will not work on my Windows 7 64bit la