Problem in loadjava

I am implementing a com.ibm.mq.jar file in my java code. The code is complied fine but when i use the loadjava command to load this class file in oracle library, it is displaying the following error:
ORA-29521: referenced name com/ibm/mq/MQQueueManager could not be found
ORA-29521: referenced name com/ibm/mq/MQMessage could not be found
ORA-29521: referenced name com/ibm/mq/MQPutMessageOptions could not be found
ORA-29521: referenced name com/ibm/mq/MQGetMessageOptions could not be found
ORA-29521: referenced name com/ibm/mq/MQException could not be found
ORA-29521: referenced name com/ibm/mq/MQEnvironment could not be found
ORA-29521: referenced name com/ibm/mq/MQMD could not be found
ORA-29521: referenced name com/ibm/mq/MQQueue could not be found
I think I have to upload the com.ibm.mq.jar file in the oracle as well. But we I do so it is displaying a lot of error messages.
Please guide me.

user590132,
Please don't post the same question twice, especially not to the same forum.
I answered you in the Re: ORA-29521: referenced name com/ibm/mq/MQPutMessageOptions could not be foun.
Good Luck,
Avi.

Similar Messages

  • Problem with loadjava

    Hello,
    everytime i use the "loadjava" utility, to upload Java class files into my Oracle database, an error occurs.
    This is an example of the error-message:
    D:\Programme>loadjava -user test/test -oci8 -force JTest.class
    Error while retrieving errors for JDelete
    ORA-00904: Invalid Columnname
    Error while resolving errors for JDelete
    ORA-00904: Invalid Columnname
    loadjava: 2 errors
    Could avyone give me a solution for this problem?
    Thanks!
    JBl
    null

    Actually, as I created my user "like" an existing user that has been assigned JAVAUSERPRIV, my users have been assigned to the role. I've even gone and assigned my users to the JAVASYSPRIV role as well. I'm actually running loadjava with the SYS user in all my cases specifying the specific schema I'm interested in.
    I have spent a lot of time reading the documentation on loadjava and the Java Developer's Guide in general. I've also spent quite some time "Googling" this as well. Like I said, as I'm new to this, I'm sure it's something straightforward. I'm just looking for some tips or hints.

  • Deployment problem in loadjava

    Hello Raghu,
    Thank You for you help.
    I selected JDk 1.1 from Project Properties. Still I am getting
    the error at the same point except for the fact that the content
    of Error Message is slightly modified. Instead of "Cannot Load
    Java Classes into Data Base:Null Output Stream " it now gives
    "Cannot Load Java Classes into Data Base: 1 errors"
    Please help me.
    Thank You,
    Pravin
    JDeveloper Team (guest) wrote:
    : Hi
    : Make sure that your JDK version is 1.1 and not 1.2. The
    problem
    : occurs when you have your JDK set as 1.2
    : This can be set through the project properties.
    : regards
    : raghu
    : Seema (guest) wrote:
    : : Hello,
    : : I am using Jeveloper 2.0. I created a java class
    containing
    : a
    : : public static method. Then I tried to deploy it to Oracle 8i
    : : Database, using the Deployment wizard. I tried to deploy
    : : a 'Java stored procedure'. There was no error with the
    : connection
    : : to Oracle Database. Also I could do the same with direct
    : commands
    : : from command line utility (loadjava and publish [from sql
    : : prompt]).
    : : I got the following error -
    : : "cannot load java classes into database: null output
    stream"
    : : at the point of -
    : : "invoking Oracle 8i deployment Utility"
    : : I would very much appreciate if someone could throw some
    light
    : : on
    : : this problem / or give a site where I can find listing of
    such
    : : errors and their causes and/or remedies.
    : : With Thanks ,
    : : Pravin
    null

    Hi
    I could not replicate the error. Would it be possible to send a
    small test case.
    Also If you are able to load the same java class succesfully thru
    loadjava command line utility, what are the parameters that you
    specified for loadjava.
    Any other differences between the command line and JDev IDE can
    be useful (such as classpath)
    regards
    raghu
    Pravin Sonsale (guest) wrote:
    : Hello Raghu,
    : Thank You for you help.
    : I selected JDk 1.1 from Project Properties. Still I am getting
    : the error at the same point except for the fact that the
    content
    : of Error Message is slightly modified. Instead of "Cannot Load
    : Java Classes into Data Base:Null Output Stream " it now gives
    : "Cannot Load Java Classes into Data Base: 1 errors"
    : Please help me.
    : Thank You,
    : : : Hello,
    : : : I am using Jeveloper 2.0. I created a java class
    : containing
    : : a
    : : : public static method. Then I tried to deploy it to Oracle
    8i
    : : : Database, using the Deployment wizard. I tried to deploy
    : : : a 'Java stored procedure'. There was no error with the
    : : connection
    : : : to Oracle Database. Also I could do the same with direct
    : : commands
    : : : from command line utility (loadjava and publish [from sql
    : : : prompt]).
    : : : I got the following error -
    : : : "cannot load java classes into database: null output
    : stream"
    : : : at the point of -
    : : : "invoking Oracle 8i deployment Utility"
    : : : I would very much appreciate if someone could throw some
    : light
    : : : on
    : : : this problem / or give a site where I can find listing of
    : such
    : : : errors and their causes and/or remedies.
    : : : With Thanks ,
    : : : Pravin
    null

  • A problem with loadjava(install of plxml parser)

    Hi,
    I'm working on :
    NT4 SP5 (with an oracle816 client)
    the database server is running under unix
    I'm trying to install the parser plxml and I've a problem when I want to run :
    'loadjava -thin -user/[email protected]:port:instance xmlparserv2.jar'
    I've 31 errors of this kind :
    Error while creating resource : oracle/xml/parser/v2/mesg/XMLErrorMesg_zh_CN.properties (error...oracle/aurora/rdbms/Compiler)
    I have run before initjvm.sql and initsqlj.sql.
    Thanks a lot for your response
    Regards
    Christine
    null

    Thank you for answer.
    Unhappily I have already done what you suggest (many times) without any success.
    Do you have an other suggestion ?

  • Problem in loadjava using sys account

    Hello
    When I load a jar file into the database using loadjava command using sys account like
    loadjava -user sys/<password> -resolve -order weblogic.jar
    it gave the following error
    loading : oracle/jdbc/driver/OracleResultSetCache
    creating : oracle/jdbc/driver/OracleResultSetCache
    Error while creating class oracle/jdbc/driver/OracleResultSetCache
    ORA-01031: insufficient privileges
    I have seen in the table that sys account has the right to loadclassinpackage oracle.jdbc.*.
    Please tell me what is the error and how can I rectify the error.
    Prashant

    Prashant,
    If I'm not mistaken, this is exactly the same question as you
    posted 10 minutes earlier -- but with a different title. The title
    of the earlier question is...
    calling EJB installed on weblogic from PL/SQL
    Is there a reason why you did this?
    Anyway, seeing as I'm sure this is the same as your previous question,
    I suggest you look at the answer I gave to that question -- it will
    probably be relevant to this question {;-)
    Good Luck,
    Avi.

  • How to avoid the java.lang.IncompatibleClassChangeError

    Hi all!
    I have problem to make my client Java application to work under Oracle JVM. This application works fine as standalone java class. In this mode it communicates fine with a web server.
    I have loaded all needed jar files into my user (sample) using the following command:
    Loadjava -thin -r -v -f -user sample/sample@<my_url>:1521:usr10se <jar files and classes>
    When I call my public method from a PL/SQL function I receive the following error:
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.IncompatibleClassChangeError
    The following is a trace context:
    *** 2006-11-29 17:28:10.134
    *** ACTION NAME:() 2006-11-29 17:28:10.134
    *** MODULE NAME:(SQL*Plus) 2006-11-29 17:28:10.134
    *** SERVICE NAME:(…) 2006-11-29 17:28:10.134
    *** SESSION ID:(49.5) 2006-11-29 17:28:10.134
    java.lang.IncompatibleClassChangeError
         at org.apache.axis.encoding.SerializationContext.startElement(SerializationContext.java:1122)
         at org.apache.axis.message.MessageElement.outputImpl(MessageElement.java:1253)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
         at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
         at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
         at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
         at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
         at org.apache.axis.attachments.AttachmentsImpl.getAttachmentCount(AttachmentsImpl.java:554)
         at org.apache.axis.Message.getContentType(Message.java:486)
         at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:343)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:1792)
         at org.uddi4j.transport.ApacheAxisTransport.send(ApacheAxisTransport.java:87)
         at org.uddi4j.transport.TransportBase.send(TransportBase.java:53)
         at org.uddi4j.client.UDDIProxy.send(UDDIProxy.java:1778)
         at org.uddi4j.client.UDDIProxy.find_tModel(UDDIProxy.java:823)
         at …. Call from my class
    I suspected multiple definitions of the SerializationContext.class in my jar files but was wrong: there is only one definition in the axis.jar file. For some reasons this jar file contained SerializationContext.class and SerializationContext.java modules, but I resolved this problem earlier: loadjava does not allow loading the both.
    What can be cause of the java.lang.IncompatibleClassChangeError problem?
    What I have to do to make my class work from Oracle JVM?
    Thanks,
    Roman

    Avi,
    You right, at the beginning I had problems with jar files compiled using Java 1.5. But I discovered this problem earlier, when tried to test standalone client application. Since then a whole web services tool kit, provided by my company, was recompiled with Java 1.4 and now I have no problem with standalone classes, running under Oracle JDK 1.4 environment. It means that I’m pretty sure that all Java classes that I’m loading to Oracle are compiled with JDK 1.4.
    You also right with your second guess: not all Java objects in the user_objects table of the SAMPLE user are VALID. I started from a scratch (again): dropped all Java objects from user schema and followed Kuassi Mensah instructions from the “Virtualize Your Oracle Database with Web Services” (http://www.oracle.com/technology/pub/articles/mensah_dws.html): I downloaded and then loaded to my schema the Web Service Call-out Utility jar files using the following command: loadjava -u sample/sample@usr10se -r -v -f -genmissing C:\oracle\ora10_DB\sqlj\lib\dbwsclientws.jar C:\oracle\ora10_DB\sqlj\lib\dbwsclientdb102.jar.
    This command loaded about 5000 java objects, but 400+ of them were INVALID and I saw a lot of “ORA-29534: referenced object … could not be resolved” errors.
    The tool kit provided by the group in my company only increased number of invalid objects.
    What is a strategy in this situation?
    Do all the objects have to be VALID?
    I can try to resolve the “ORA-29521: referenced name ... could not be found” errors by finding corresponding classes in some jar files and loading these jar files, but it does not guarantee that all ORA-29534 errors will go away. What else can I do to cleanup my java objects?
    Thank you very mach,
    Roman

  • MD5 table

    I have no problem to 'loadjava' a jar file with 6 classes in it as SYS in the SYS schema. However when I try the same with another user who has been granted JAVASYSPRIV, it fails with the following errors : "Error while accessing MD5 table... Error while updating MD5 of: thenameofmyclass". The JAVA$CLASS$MD5$TABLE is present in the user's schema and contains as many entries as there are classes in my jar file.
    Any idea ?
    null

    Make sure that the user that you are loading the java classes into exists,
    has permissions to create table sand procedures and has quota on their default
    tablespace and that there is sufficient space in that tablespace.
    Errors of this sort are usually caused by a lack of user permissions or
    privileges.
    The loadjava utility attempts to create the following in the users schema:
    CREATE$JAVA$LOB$TABLE
    JAVA$CLASS$MD5$TABLE
    LOADLOBS << package
    LOADLOBS << package body
    3 indexes
    1 LOB
    These objects are created to assist in the loading of java classes.
    When a user initiates loadjava, it checks the schema to see if these objects
    already exist, if they do not, it tries to create them.
    What exactly is the arguments you have supplied for the loadjava command.

  • AXIS in Oracle9i release 1 - is it possible?

    Hello,
    Does anybody know if it's possible to upload Apache axis lib into Oracle 9i release 1 (which has JDK1.2) the way we can insall a SOAP client stack, so I could use AXIS server client as a store procedure. Obviously, I'm getting the whole bunch of resolving problems trying loadjava .... -resolve axis.jar.
    Any kind of related info is greatly appreciated.
    Thank you!

    Not that I am aware of ... we do have instructions for loading Oracle's SOAP stack into the DB as per these instructions:
    http://otn.oracle.com/sample_code/tech/java/jsp/loadjars.html
    Generally I find myself mostly successful using the above on Oracle9iDB R2 though folks say that it works on Oracle9iDB R1.
    Lastly, this demonstration gives a full use case of the Database as a SOAP client in action:
    http://otn.oracle.com/sample_code/tech/java/jsp/samples/wsclient/Abstract.html
    Hope this helps.
    Mike.

  • Loadjava Problems !!

    Hi All,
    I'm experiencing some problems trying to load the SSOHash.class file to the schema that I created just like the same in the Install guide...
    The error String follows :
    E:\Projetos\Portal_SSO\lib\packages\oracle\security\sso>loadjava -user partner/[email protected]:1521:o817
    -thin -verbose -resolve -force SSOHash.class
    initialization complete
    loading : oracle/security/sso/SSOHash
    creating : oracle/security/sso/SSOHash
    Error while creating class oracle/security/sso/SSOHash
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01405: fetched column value is NULL
    ORA-06512: at "LBACSYS.LBAC_EVENTS", line 29
    ORA-06512: at line 2
    resolver :
    resolving: oracle/security/sso/SSOHash
    Error while resolving class oracle/security/sso/SSOHash
    ORA-04043: object oracle/security/sso/SSOHash does not exist
    loadjava: 2 errors
    Could Anyone help me ?? I have no idea of what could it be !!
    P.S: Please, reply to my e-mail because I'm not part of this list !!!!
    Thanks in Advance !!
    Ilan

    Looks like either your database is not java enabled or database is not configured properly.
    You may check your database if it is Java enabled
    sqlplus sys/change_on_install
    select object_name from all_objects where object_name like 'JAVA%';
    You must see various java objects name if your database is Java enabled.
    (Result for 8.1.7.0.0 database query )
    OBJECT_NAME
    JAVA$CLASS$MD5$TABLE
    JAVA$HTTP$DEPLOYMENT$DIGEST$
    JAVA$HTTP$LOG$
    JAVA$HTTP$REALM$GROUP$
    JAVA$HTTP$REALM$ID$
    JAVA$HTTP$REALM$MAPPING$
    JAVA$HTTP$REALM$POLICY$
    JAVA$HTTP$REALM$PRINCIPAL$
    JAVA$HTTP$REALM$P_SEQ$
    JAVA$POLICY$
    JAVA$POLICY$SEQUENCE$
    JAVA$POLICY$SHARED$00000002
    JAVA$POLICY$SHARED$00000004
    JAVA$POLICY$SHARED$00000005
    JAVA$POLICY$SHARED$TABLE
    JAVA$RMJVM$AUX
    JAVA$RMJVM$AUX2
    JAVA$RMJVM$AUXI
    JAVA$RMJVM$AUXI2
    JAVASNM
    JAVASNM$
    JAVA_AUTONOMOUS_TRANSACTION
    JAVA_AUTONOMOUS_TRANSACTION
    JAVA_XA
    JAVA_XA
    JAVASNM
    JAVA_AUTONOMOUS_TRANSACTION
    JAVA_XA
    JAVA$HTTP$DEPLOYMENT$DIGEST$
    JAVA$HTTP$LOG$
    JAVA$HTTP$REALM$GROUP$
    JAVA$HTTP$REALM$ID$
    JAVA$HTTP$REALM$MAPPING$
    JAVA$HTTP$REALM$POLICY$
    JAVA$HTTP$REALM$PRINCIPAL$
    JAVA$HTTP$REALM$P_SEQ$
    JAVA$CLASS$MD5$TABLE
    JAVA$CLASS$MD5$TABLE
    38 rows selected.
    null

  • Loadjava "Insufficient privileges" problem

    I am attempting to use loadjava (8.1.7) to load some classes into another schema. It works fine, until I add the -grant option. Then, I get an "insufficient privileges" error. The target schema owner has the RESOURCE role, and I've granted EXECUTE ANY TYPE, EXECUTE ANY PROCEDURE, CREATE ANY TYPE, CREATE ANY PROCEDURE, etc., with and without the WITH ADMIN OPTION suffix, directly to both the creating account and the schema owner, all to no avail.
    Any ideas would be appreciated.

    Insufficient privileges is a rather generic problem. In this case in may be referring to java privileges. I suggest you read up on DBMS_JAVA.GRANT_PERMISSION and see what privileges are necessary to run your JSP.
    Cheers, APC

  • Loadjava column name problem

    When trying to load compiled java classes, I always get the following:
    Error while retrieving errors for BradTest
    ORA-00904: invalid column name
    resolver :
    Error while resolving class BradTest
    ORA-00904: invalid column name
    loadjava: 2 errors
    I get this error no matter what, even if I have an empty class with no methods or variables. I am using the following syntax for the loadjava:
    loadjava -user id/password@host:1521:SID -t -r -v BradTest.class
    Any ideas what the problem is?
    Thanks,
    Brad

    Sounds as though the JVM may not be correctly or completely installed. You may need to rerun the INITJVM.SQL script (as sys) and check the alert log for errors.

  • Loadjava problem

    Hi,
    I've Oracle 8.1.6 on Debian 2.2 rel.2.
    I'm trying to load java classes to my database.
    I can do it with PL/SQL package: "DBMS_JAVA".
    When I try to use command line utility: "loadjava" I get the message:
    loadjavasu: /ora/app/oracle/product/8.1.6/bin/loadjava: No such file or directory
    ls -l /ora/app/oracle/product/8.1.6/bin/loadjava-rwxr-xr-x 1 oracle oinstall 679 Feb 2 23:27 loadjava
    what's wrong? ..

    Hello,
    The problem is that the script loadjava is made to use Korn Shell.
    Assuming you haven't installed it (wich would prevent that error), edit the script, and change the first line from ksh to sh.

  • Dbms_java.loadjava problem on Oracle9i

    I'm having trouble with the dbms_java.loadjava() procedure. It completes successfully but the java class never appears in the user_objects table. If I use the standard loadjava utility everything works fine and the java class appears in the user_objects table as expected.
    I can successfully run other functions in the dbms_java package which leads me to believe that everything is ok with permissions.
    Is this an Oracle9i issue? Any ideas?
    Thank you!
    .. june

    I have the same problem... any ideas? after loading the java class, I also called DBMS_JAVA.GRANT_PERMISSION('<USER>', 'java.io.FilePermission', '<FILENAME WITH PATH>', 'read, write, exec')
    thanks
    Ranganath Samudrala

  • Loadjava Problem (NoClassDefFoundError)

    Hello,
    I got a problem when loading the java using Loadjava command under dos prompt
    the error is:
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/lite/loadjava/Main
    How can i solve it? I have checked the classpath. It includes OLITE40.JAR already. Any other classpath should i set in the dos environment before using Loadjava command

    Check the JDK 1.3. Make sure the classpath includes the java class you want to load.

  • Loadjava onto 8i problem

    try to test AQEJBHotelSample , everything go fine until this step:
    loadjava -user travel/travel@linux2:1521:ORCL1 -v -f -r -t $ORACLE_HOME/rdbms/jlib/aqapi.jar
    Error while opening or reading
    Exception java.io.FileNotFoundException:
    SQL Error while connecting with thin driver to linux2:1521:ORCL1: The Network Adapter could not establish the connection
    could not open connection
    null

    Insufficient privileges is a rather generic problem. In this case in may be referring to java privileges. I suggest you read up on DBMS_JAVA.GRANT_PERMISSION and see what privileges are necessary to run your JSP.
    Cheers, APC

Maybe you are looking for