JDev10.1.2: Difference betwn same oracle.jbo.classes in different jar files

Hello guys, does somebody knows the difference between these two JDeveloper 10.1.2 directories?
JDEV_HOME/BC4J/lib
JDEV_HOME/BC4J/jlib
And more deeply, why are there different jar files both containing classes like oracle.jbo.domain.Number and oracle.jbo.domain.Date? I explain: you can find oracle.jbo.domain.Number in JDEV_HOME/BC4J/lib/bc4jdomorcl.jar and in JDEV_HOME/BC4J/jlib/bc4jdomgnrc.jar ?
This is very strange.
I ran into trouble because both oracle.jbo.domain.Number classes where being loaded, I was importing into my project the BC4J Generic Domains library which points to the BC4J/jlib/bc4jdomgnrc.jar, so I took it off of my project and added the BC4J/lib/bc4jdomorcl.jar as an additional path in the classpath because this is the one referenced by the embedded OC4J in the application.xml file.
Thank you.

Refer to the section BC4J Runtime Libraries
If you are using the Oracle type mappings, use bc4jdomorcl.jar. If the application was built using "Java" type mapping, use bc4jdomgnrc.jar which is located in <jdev_install>/bc4j/jlib.
http://213.35.38.54/otn_hosted_doc/jdeveloper/904preview/packaging_deploying/dbc_pldlibsappsvr.html

Similar Messages

  • Oracle 9i: Help with loadjava jar files to call out web service from pl/sql

    I'm trying to build a web service client using dbws_callout_utility.zip (version used for prio 10g database). I followed the articles in oracle site to loadjava jar files (soap.jar, dms.jar, ejb.jar, jssl-1_1.jar, mail.jar, servlet.jar) into Oracle DB 9i before invoke jpub to gen stub class and wrappers in oracle 9i but i have many errors such as ora-29534 and ora-29521. As consequence i could not invoke jpublisher to generate code.
    Pls. help my with detail guide to overcome these errors, thanks in advance! My DB is Oracle 9.2.0.5

    Dear,
    I have read your article, it is useful for me. But I cannot Apply to my case. Please kindly help me. Thank you.
    When running, the error occurs:
    1:39:31 Execution failed: ORA-20000: soapenv:Server.userException - org.xml.sax.SAXParseException: Attribute name &quot;password&quot; associated with an element type &quot;user&quot; must be followed by the &apos; = &apos; character.
    My webservice Url: http://abc.com.vn:81/axis/ABC_WS_TEST.jws?wsdl
    I make PL/SQL (similiar as your example)
    FUNCTION INVOKESENDMT
    RETURN VARCHAR2
    AS
    l_request soap_api.t_request;
    l_response soap_api.t_response;
    l_return VARCHAR2(32767);
    l_url VARCHAR2(32767);
    l_namespace VARCHAR2(32767);
    l_method VARCHAR2(32767);
    l_soap_action VARCHAR2(32767);
    l_result_name VARCHAR2(32767);
    p_zipcode VARCHAR2(160);
    BEGIN
    --p_zipcode:='''TEST'' ; ''TEST'';''84912187098'';''84912187098'';''0'';''8118'';''1'';''000001'';''ThuNghiem'';''''';
    p_zipcode:='TEST';
    -- Set proxy details if no direct net connection.
    --UTL_HTTP.set_proxy('myproxy:4480', NULL);
    --UTL_HTTP.set_persistent_conn_support(TRUE);
    -- Set proxy authentication if necessary.
    --soap_api.set_proxy_authentication(p_username => 'TEST',
    -- p_password => 'TEST');
    l_url := 'http://abc.com.vn:81/axis/ABC_WS_TEST.jws';
    l_namespace := 'xmlns="' || l_url || '"';
    l_method := 'sendMT';
    l_soap_action := l_url || '#sendMT';
    l_result_name := 'sendMTResponse';
    l_request := soap_api.new_request(p_method => l_method,
    p_namespace => l_namespace);
    soap_api.add_parameter(p_request => l_request,
    p_name => 'user password sender receiver chargedflag servicenumber messagetype messageid textcontent binarycontent',
    p_type => 'xsd:string',
    p_value => p_zipcode);
    l_response := soap_api.invoke(p_request => l_request,
    p_url => l_url,
    p_action => l_soap_action);
    l_return := soap_api.get_return_value(p_response => l_response,
    p_name => l_result_name,
    p_namespace => l_namespace);
    RETURN l_return;
    END;

  • Oracle 9i Streams AQ JMS jar files download

    Hi,
    i assume i need some jarfiles to access Oracle Streams AQ JMS for Oracle 9i.
    I just want to write some JAVA Applications using "Oracle Streams AQ JMS for Oracle 9i"
    What should i download? Where could it be found?

    AQ is part of the database. All the software related to AQ is included in the database. The doc for AQ is http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96587/toc.htm
    Chapter 3 of the doc includes:
        Using PL/SQL to Access AQ
        Using OCI to Access AQ
            Examples
        Using Visual Basic (OO4O) to Access AQ
            For More Information
        Using AQ Java (oracle.AQ) Classes to Access AQ
            Accessing Java AQ Classes
            Advanced Queuing Examples
            Managing the Java AQ API
        Using Oracle Java Message Service to Access AQ
            Standard JMS Features
            Oracle JMS Extensions
            Accessing Standard and Oracle JMS
            For More Information

  • Same source, different jar file sizes

    What could be creating this discrepancy in jar file sizes on two machines with exactly the same versions of SDK etc installed.
    Machine 1 - obfuscated jar size 148Kb
    Source moved to Machine 2 - obfuscated jar size 222Kb
    Source moved back to Machine 1, mods made, - obfuscated jar size 143Kb
    Source copied to Machine 2, NO mods, - obfuscated jar size 138Kb
    I want to retire Machine 1, and in fact Machine 2 is due to be re-purposed as well when my new shiny one arrives but I am worried I won't be able to get my file sizes as small as possible or at least cram as much as possible in so I would like to know what sort of things impact the packaging process.
    Thanks
    Kathydb

    When you sync photos with iTunes it automatically optimizes the photo size for the screen on the device it is syncing it to. Photo Stream also has some of this functionality built into it as well although a full resolution photo will be sent to iPhoto on Mac computers. Photos taken with different devices will also have different file sizes depending on how many megapixels the camera on the device has.

  • Need some information for jar files upload in Oracle

    Hi,
    I am developing some java stored procedures which requires uploading about 10-15 jar files or may be more, to the oracle database. One way is to use loadjava and oracle stores classes in those jar files as separate java classes. Is there a way that I can put these jar files somewhere in the file systems, configure some oracle parameter, restart the database and still I am able to use them from my java stored procedures. This will be some kind of a dropin folder for jars. Any information on this will be helpfule.
    Thanks

    The forum on the JVM in Oracle at Java in the Oracle Database might be a better one to answer your question.
    Melli

  • .jar file reusablility issue in oracle forms

    hello all
    i am using oracle forms
    {code}
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    {code}
    and using Database 10g
    {code}
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    {code}
    i am developing an application in oracle forms that sends message through GSM mobile when any transaction is commited.
    i wrote a class in java , made .jar file , edited default.env file CLASSPATH = "my .jar file"
    everything is working fine when i am trying the code in NETBEANS IDE, it sends messages again and over again with no delay..
    PROBLEM:
    the problem is that when i try to send message from oracle forms using that JAR file , it sends message for only single time , after that it neither shows me any error nor sends the message,
    (1) can it be problem of closing COM port for reusablity.
    (2) any other way to reuse the jar file.
    (3) should i program to closo the used port. (but java program is working very well in NETBEANS IDE).
    please suggest me what should i do to reuse .jar file again and over again.
    thanks

    thanks for your reply.
    sorry if forgot to mention that how i am using this java code.
    yes! i am using that java code using Java Importer in oracle forms 10g.
    importing that jar file i used PL/SQL code to use the static public veriables in oracle forms
    Procedure Send_Message(
        Cel_N In Varchar2
    Is
      Ora_Obj Ora_Java.Jobject;
      Com_P    Varchar2(10);
      Cent_No  Varchar2(100);
      Send_Sms Number;
      Mesg     Varchar2(200);
    Begin
      Ora_Obj := Smsclient.New(1);
      Smsclient.Setcomportname(Com_P);
      Smsclient.Setmsgcenternum(Cent_No);
      Send_Sms:= Smsclient.Sendmessage(Ora_Obj,Cel_N,Mesg);
    Exception
    When Ora_Java.Java_Error Then
      Message(Ora_Java.Last_Error);
    When Others Then
      Message(Sqlerrm);
    End;
    this Smsclient.Sendmessage Class is working very well in both plateforms in NETBEANS IDE and oracle forms but the difference is in this class that
    in NETBEANS IDE (when i run this class using F6 ) it works every time with no delay
    but when i use this same class in pl/sql code through oracle forms it works only for one time.
    COM ports and GSM modem is working property but why .jar file works for once.. and when i restart OC4J & oracle form at run time then it works for only once , meanse after starting OC4J i am able to send message through mobile for one time, means .jar file works only once, why not every time i call the class through oracle form..
    what should i check .. please..
    thanks

  • Error while using FJTable.jar & SwingButton.jar files in a same form

    Hi Experts,
    I am using forms 10.1.2 with Java Plug-in 1.6.0_02
    I have downloaded FJTable.jar & SwingButton.jar files from http://forms.pjc.bean.over-blog.com site. When I am using both files in one form, it shows error :
    java.lang.SecurityException: class "oracle.forms.fd.SwingButton"'s signer information does not match signer information of other classes in the same package”
    If anybody has any idea about this please help me
    Thanks
    Kalpesh

    Hello,
    You cannot run one form that contains more than one Beans that have not the same signature.
    Sign both the JAR files and everything is going to be OK ;D
    Francois

  • How to load the same classes of the same name, from different jars

    Hi,
    I have several different versions of my project in respective jars. I am trying to develop a configuration app, which will have the most current version of my app packaged within it. Then the user will make a selection, and if that selection is an older version, a specific class from one of the jars...which will continue to load other classes within that same jar. If it is the current version, the class will be found within the codebase.
    My question is if this is even possible? Can I load a class from a jar file which has the same file name and package as what is in my current code?

    nasch_,
    So I have been searchin around, and found some good tutorials on classloaders, But i still see a problem.
    Whether I use the same classloader for different sources or not, the problem lies within the reference to the class i am loading. Since this class (a different version of it), is also in the classpath, how does the code know which class is being returned?
    I am having trouble putting this into words, but basically. i don't see how my application will know that i am returning an instance of a class which is not in my classpath.

  • Loading .jar files in oracle

    I read the following lines in the site
    http://download.oracle.com/docs/cd/B10501_01/java.920/a96659/02_load.htm
    Resolving Class Dependencies
    Many Java classes contain references to other classes, which is the essence of reusing code. A conventional Java virtual machine searches for classes, ZIP, and JAR files within the directories specified in the CLASSPATH. In contrast, the Oracle Java virtual machine searches database schemas for class objects. With Oracle, you load all Java classes within the database, so you might need to specify where to find the dependent classes for your Java class within the database.
    All classes loaded within the database are referred to as class schema objects and are loaded within certain schemas. All JVM classes, such as java.lang., are loaded within PUBLIC. If your classes depend upon other classes you have defined, you will probably load them all within your own schema. For example, if your schema is SCOTT, the database resolver (the database replacement for CLASSPATH) searches the SCOTT schema before PUBLIC. The listing of schemas to search is known as a resolver spec. Resolver specs are for each class, whereas in a classic Java virtual machine, CLASSPATH is global to all classes.*
    When locating and resolving the interclass dependencies for classes, the resolver marks each class as valid or invalid, depending on whether all interdependent classes are located. If the class that you load contains a reference to a class that is not found within the appropriate schemas, the class is listed as invalid. Unsuccessful resolution at runtime produces a "class not found" exception. Furthermore, runtime resolution can fail for lack of database resources if the tree of classes is very large.
    Question is ....
    do we realy need to mention -resolve option when using load java to load the .jar files?
    because... i read some where that when the java procedure gets executed it willl first search for the classes in current schema.... then it finds for the objects in public schema...
    now if its searchingg them in current schema why is -resolve required?
    my scenario
    i have a base class which calls alll the classes that are inside the .jar file
    i loaded the base class first..
    then loaded all the .jar files ..
    in both the above options the .jar files contains user defined classes... and they are not present in oracle jvm library.. .so how do i need to proceed here?

    Correct name resolver or address resolution problems in the referenced class, or correct compilation problems in its source.

  • How to sign multiple jar files using the same certificate..?

    hi,
    I want to run my application using Java Web Start.. i am using around 16 different jar files out of which around 13 are 3rd party component jars. I want to sign these jars using the same certifcate..., i am using the follwing code to sign the jars:
    (for the jar file ischeduler.jar)
    keytool -genkey -alias signFiles91 -keystore dtss -keypass dtss1351 -dname "cn=dtss" -storepass decisioncraft
    jarsigner -keystore dtss -storepass decisioncraft -keypass dtss1351 -signedjar signedischeduler.jar ischeduler.jar signFiles91
    keytool -export -keystore dtss -storepass decisioncraft -alias signFiles91 -file ischeduler.cer
    keytool -import -alias DCA2 -file ischeduler.cer -keystore Impischeduler -storepass ischeduler
    (for the jar file ischedulerclient.jar)
    keytool -genkey -alias signFiles92 -keystore dtss -keypass dtss1351 -dname "cn=dtss" -storepass decisioncraft
    jarsigner -keystore dtss -storepass decisioncraft -keypass dtss1351 -signedjar signedischedulerclient.jar ischedulerclient.jar signFiles92
    keytool -export -keystore dtss -storepass decisioncraft -alias signFiles92 -file ischeduler.cer
    keytool -import -alias DCA3 -file ischeduler.cer -keystore Impischeduler -storepass ischeduler
    but when i use the above signed jars in my application i get an error saying:
    "jars not signed by the same certificate"
    can someone plz tel me wher is the error....thanx
    andy

    Well for mulitple signing of jar files you can use ANT tool. Its easier and faster.
    Regarding the present problem -- hmm.. well it looks like you are using 2 different alias names for signing the jar file. Try using the same alias name and that might solve your problem.
    regards
    Saby

  • How to check differences between two bpel jar files

    Hi,
    Can some one please suggest, how to check the differences between two versions of a BPEL process jar files.
    Thanks in advance!

    Hi,
    Try this,
    SELECT   cons.owner AS child_owner, cons.table_name AS child_table,
             cons.constraint_name constaint_name,
             cons.constraint_type constraint_type, col.owner parent_owner,
             col.table_name parent_table, col.column_name column_name
        FROM dba_cons_columns col, dba_constraints cons
       WHERE cons.r_owner = col.owner
         AND cons.r_constraint_name = col.constraint_name
         AND col.owner = 'MY_USER'
    ORDER BY child_table;Thanks,
    Shankar

  • Critiical - Oracle Contract Breach by Changing Logo, frmall_jinit.jar file?

    Hi Guys,
    We want to display our own logo instead of ORACLE logo in forms runtime applet that is loaded in web browser.
    I know how to do it, adding the logo in frmall_jinit.jar file and in formsweb.cfg, setting logo=<our logo>.
    And this is working perfectly fine.
    The query i have is -
    By doing so do we breach Oracle's contract? As we are modifying a jar file provided by them?
    Thanks!
    Av.
    Edited by: Avi4Ora on Aug 5, 2010 2:01 PM

    Ahhh, I thought you wanted to know if it is allowed to change the frmall_jinit.jar to add your own logo hence the link to the documentation ;).
    So you are saying you are replacing the oracle_logo.gif located in /forms/icons? This doesn't sound right as to my mind that's misusing of the Corporation Name "Oracle" (on the other side I'm just a developer, not a lawyer).
    But anyway: if you change the logo via formsweb.cfg (logo=something) to something else, and pack your image in a different jar file you should be good in my mind. They give you the possiblities to change the logo of your forms app and they document it. Sounds valid to me (again: developer, not lawyer).
    cheers

  • After LOADing .jar file in to the oracle database  some classes r invalid

    Hi I have a .jar file to load it into the oracle database 11g.
    I use load java to load the .jar file.... I dont mention any resolver so I assume that all the .class files inside .jar are loaded as the schema user objects . Eg: if my schema is SCOTT they are loaded as SCOTT objects .. correct me if iam wrong because i see these lines on a site
    Many Java classes contain references to other classes, which is the essence of reusing code. A conventional Java virtual machine searches for classes, ZIP, and JAR files within the directories specified in the CLASSPATH. In contrast, the Oracle Java virtual machine searches database schemas for class objects. With Oracle, you load all Java classes within the database, so you might need to specify where to find the dependent classes for your Java class within the database.
    All classes loaded within the database are referred to as class schema objects and are loaded within certain schemas. All JVM classes, such as java.lang., are loaded within PUBLIC. If your classes depend upon other classes you have defined, you will probably load them all within your own schema. For example, if your schema is SCOTT, the database resolver (the database replacement for CLASSPATH) searches the SCOTT schema before PUBLIC. The listing of schemas to search is known as a resolver spec. Resolver specs are for each class, whereas in a classic Java virtual machine, CLASSPATH is global to all classes.*
    When locating and resolving the interclass dependencies for classes, the resolver marks each class as valid or invalid, depending on whether all interdependent classes are located. If the class that you load contains a reference to a class that is not found within the appropriate schemas, the class is listed as invalid. Unsuccessful resolution at runtime produces a "class not found" exception. Furthermore, runtime resolution can fail for lack of database resources if the tree of classes is very large.
    Now my question is that.... why are some of the classes becoming invalid... ?
    Edited by: learning_man on Mar 4, 2010 10:26 AM

    after loading class i see some additional characers prior to class name when i query user_objects and object_type='JAVA CLASS'

  • Difference between jar file and package?

    What is difference between a package and jar?
    Is a jar a package? or is package jar?
    If I say
    package pink;
    does it mean pink is folder or jar?
    what if I say import pink.rose;
    does it import jar file with the rose class inside it?

    These two concepts are unrelated. A jar file is nothing more than a zip file of class files and other related resources, which you can use to 'bundle' your application for ease of deployment. Th use of zip files is not mandatory.
    Packages on the other hand, are a means of 'packaging' parts of an application or library in their own namespace, generally for reasons program structure, and to avoid naming collisions. A bunch of classes in a package will be compiled into a bunch of class files, on a one-to-onwe basis (one file per class).
    You may chose to 'bundle' those and other classes into a jar file.

  • Oracle.jbo.RowAlreadyDeletedException raised on EO impl with dead status.

    Any help with this will be greatly appreciated as this is affecting our live environment and as yet we have no fix.
    I have 3 tables (for simplicity lets call them table A, B and C). I have 3 entity objects related by strong association EO_A, EO_B and EO_C. EO_C is the child of EO_B which is the child of EO_A - simple. I have a view object for each entity and the VO's are related by view links. I am experiencing the following problem :
    I insert a row into VO_A and then call a procedure on the database to insert some rows into tables B and C. I post my changes on the transaction then re-query VO_A. I then update a row in VO_C (for a given VO_B master record) in the UI and the change is succssfully set on the EO. I then cancel the transaction using DBTransaction.rollback(). I receive the error :
    oracle.jbo.AfterRollbackException: JBO-26102: An error occurred after rollback was performed.
    When I start the transaction again, the first time a transaction attached to the same Application Module tries to post changes, I receive the error (where SrResourcesEOis EO_B):
    oracle.jbo.RowAlreadyDeletedException: JBO-25019: Entity row of key oracle.jbo.Key[5264 ] not found in SrResourcesEO
    I have found that this is because the transaction is trying a SELECT FOR UPDATE NOWAIT on a row in EO_B that was created and rolled back in the previous failed transaction ???
    Debug log entry (where SrResourcesEO = EO_B) :
    "OracleSQLBuilderImpl.doEntitySelect(565) Executing LOCK...SELECT SCHEDULE_RESOURCE_ID, SCHEDULE_ID, PERSON_ID, LAST_UPDATED_BY, LAST_UPDATE_DATE, ATTRIBUTE_CATEGORY, ATTRIBUTE1, ATTRIBUTE2, ATTRIBUTE3, ATTRIBUTE4, ATTRIBUTE5, ATTRIBUTE6, ATTRIBUTE7, ATTRIBUTE8, ATTRIBUTE9, ATTRIBUTE10, LAST_UPDATE_LOGIN, CREATED_BY, CREATION_DATE FROM CPW_SR_RESOURCES SrResourcesEO WHERE SCHEDULE_RESOURCE_ID=:1 FOR UPDATE NOWAIT"
    I cannot understand why this is as the AM was released in the previously failed attempt and this is a completely new transction.
    The really scary thing is that once this happens it affects ALL users, not just the user who's session caused the error. The error persists until the web server is restarted. It's almost as if (although I'm sure this can't happen) the previous corrupt transaction listener is still lurking around and is trying to re-try the action it previously failed on when the transaction next posts changes.
    Findings:
    1) The same problem happens if I delete a record.
    2) If I insert a new record to EO_C in the UI and rollback the transaction I do not get the error. The problem only occurs if I update or delete a record that was created by the procedure on the database.
    3) If I do the same DML into table B and C via the entity objects EO_B and EO_C not via the DB procedure, I do not get the error when I rollback.
    4) The original error (JBO-26102) is being raised in afterRollback() on the parent EO_B.
    5) The subsequent error (JBO-25019) is being raised in lock() on the parent EO_B.
    It appears that I am experiencing a similar issue mentiond by Steve Muench in the following thread.
    Re: Internal error: Entity.afterRollback.status_dead   -- What does this mean?
    The difference is that I am not using dual composition. I do not have one child with two owning parents, I have one child (EO_C) with one owning parent (EO_B).
    I am using JDeveloper version 9.0.3.5 (I am constrained to this version as I am using it in an OA environment)
    We are running BC4J 9.0.3.13
    Any help greatly appreciated.

    Ok, i found out why I am getting the error and the raised exception:
    Before the commit, I am doing
    row.setAttribute("Attribute",newVal);
    That's why it raises the exception. I commented out that line and I'm getting no error anymore. But it does not commits the operation to the DB (i.e. no new row is added to the table). So, the same behaviour as the delete operation that I talked about in the 1st post.

Maybe you are looking for

  • HT4101 Is there a maximum file size that can be transferred with the camera connection kit?

    I'm trying to transfer images from my Canon 5DmkII with the lightning to USB adapter and it will not transfer the 9.9MP or 21MP RAW images. Is there a size limit on the file that can be transferred?

  • Ipod nano wheel not turning

    Hi  I have a I Pod nano 5th generation and just recently the wheel has stopped turning, has anyone any advice on how this can be fixed?

  • ADF Mobile sample - palm simulator and jar problem

    Hello. I got a few problems with ADF mobile tutorial. (http://www.oracle.com/technology/products/jdev/101/tutorials/wireless/mobile2.html) 1.     Palm Simulator has no web browser. As per description under ‘Prerequisites’ I downloaded the newest Palm

  • Apps for organizing

    I'm trying to find an app which combines several native iOS apps: namely, Notes, Reminders and Alarms (alerts). It would also allow me to set up folders for different lists and keep track of those lists by bringing up a specific folder. Everclear mig

  • Bus Powered external fw 800 Drive

    Hi! I am going sttrongly concidering buying a Lacie 250GB bus-powered Firewire 800 Hard drive. I know it is bus powered but I can not seem to find out how much energy that it uses to spin up. Would my 15" macbook pro be able to support it through the