Loadjava errors

Hi,
I developped java classes on my computer and compiled them. It works.
Now, I must load them in an oracle database using the loadjava command of the jdk 1.1.8. Unfortunately, that does not work.
When i try to load the jar files used by my classes in the database, it returns the following errors.
loadjava -verbose -user sacso1/sacsot@infoexpl2:1528:SACSO_T -thin -resolve w3c.jar
Error while processing jar w3c.jar
Exception java.io.IOException: Load Java is unable to handle compressed entries: org/w3c/dom/svg/SVGPointList.class
resolver :
initialization complete
org/w3c/dom/svg/SVGPointList is already resolved
org/w3c/dom/svg/SVGAnimatedString is already resolved
org/w3c/dom/css/DocumentCSS is already resolved
org/w3c/dom/css/Counter is already resolved
resolving: org/w3c/dom/svg/SVGFEDistantLightElement
Errors in org/w3c/dom/svg/SVGFEDistantLightElement:
ORA-29534: referenced object SACSO1.org/w3c/dom/svg/SVGElement could not be resolved
resolving: org/w3c/dom/svg/SVGFEImageElement
Errors in org/w3c/dom/svg/SVGFEImageElement:
ORA-29534: referenced object SACSO1.org/w3c/dom/svg/SVGElement could not be resolved
resolving: org/w3c/dom/svg/SVGFEMergeElement
Errors in org/w3c/dom/svg/SVGFEMergeElement:
ORA-29534: referenced object SACSO1.org/w3c/dom/svg/SVGElement could not be resolved...etc
Does anyone know what's wrong?
Thanks in advance
Bye
[email protected]

When a jar file is created, zip compression can be turned on. Actually it may be on by default and you have to turn it off. You could expand the jar file to its directory structure and then re-jar it without the compression. Then you could loadjava it without problems.
null

Similar Messages

  • Loadjava error - loading JAR file

    Hi,
    I am trying to load a JAR file into the DB and am getting these errors:
    $ loadjava -force -user user/pass javaTelnet.jar
    Error while creating class javaTelnet/ScriptHandler
        ORA-29537: class or resource cannot be created or dropped directly
    Error while creating class javaTelnet/TelnetClient$ReaderThread
        ORA-29537: class or resource cannot be created or dropped directly
    Error while creating class javaTelnet/TelnetClient
        ORA-29537: class or resource cannot be created or dropped directly
    Error while creating class javaTelnet/TelnetWrapper
        ORA-29537: class or resource cannot be created or dropped directly
    Error while creating class javaTelnet/TelnetProtocolHandler
        ORA-29537: class or resource cannot be created or dropped directly
    The following operations failed
        class javaTelnet/ScriptHandler: creation
        class javaTelnet/TelnetClient$ReaderThread: creation
        class javaTelnet/TelnetClient: creation
        class javaTelnet/TelnetWrapper: creation
        class javaTelnet/TelnetProtocolHandler: creation
    exiting  : Failures occurred during processing
    These are the only other Java class I have in the DB.
    SQL> select dbms_java.longname(object_name),status
      2  from user_objects
      3  where object_type='JAVA CLASS'
      4  /
    DBMS_JAVA.LONGNAME(OBJECT_NAME)
    STATUS
    PBoot
    VALIDThe JAR contains all class files within a package named javaTelnet.
    I am able to execute the JAR successfully from command line.
    Thanks

    Hi,
    I am not able to load a simple java source/class(either one, not both) file into the DB.
    $ dropjava -user user/pass -v A.java
    dropping: source A
    $ loadjava -user user/[email protected] -v -resolve A.java
    arguments: '-user' 'user/[email protected]' '-v' '-resolve' 'A.java'
    creating : source A
    loading  : source A
    creating : A
    resolving: source A
    $
    SQL> select dbms_java.longname(object_name),status
      2  from user_objects
      3  where object_type like 'JAVA %'
      4  /
    DBMS_JAVA.LONGNAME(OBJECT_NAME)
    STATUS
    PBoot
    VALIDAny guess how I may be able to resolve this issue?.
    Any trace files about loadjava written anywhere ?
    Thanks

  • Loadjava error witth IFs classes

    I try to do a Java Store Procedure, this procedure use a IFs classes
    ===
    import oracle.ifs.adk.user.UserManager;
    import oracle.ifs.common.AttributeValue;
    import oracle.ifs.beans.DirectoryUser;
    import oracle.ifs.common.IfsException;
    import java.util.Hashtable;
    ===
    but when i try to use loadjava command this errors apears
    =====
    IFSUser:5: Class oracle.ifs.adk.user.UserManager not found in import.
    IFSUser:6: Class oracle.ifs.common.AttributeValue not found in import.
    IFSUser:7: Class oracle.ifs.beans.DirectoryUser not found in import.
    IFSUser:8: Class oracle.ifs.common.IfsException not found in import.
    ====
    How Can i register the IFs clases into the database JVM?

    Its a long procedure to do so. Read the Oracle 8i Java Stored Procedures Developer's Guide for details.

  • Loadjava error: ORA-29540: class oracle/aurora/rdbms/DbmsJava does not exist

    Hi,
    I'm trying to create a simple Java stored procedure running 8.1.6. When using loadjava (c:\jdk1.2.2\bin\java -classpath .;d:\orant8i\lib\aurora_client.jar;d:\orant8i\javavm\lib\aurora.zip;d:\orant8i\sqlj\lib\translator.zip;d:\orant8i\jdbc\lib\classes111.zip oracle.aurora.server.tools.loadjava.LoadJavaMain -u system/manager -f -v Test.class), I get the above error. The problem: file DbmsJava exists in the included aurora.zip package. To verify this, I checked the zip file, and I successfully compiled a test program importing the class.
    Any ideas?
    Thanks,
    Bernd

    I also tried another approach to create a Java stored procedure, and got an error which I think has the same cause as above:
    public class Test { public static void test() {System.out.println("Test");}}
    create directory dir as 'C:\Test';
    create java class using bfile(dir, 'Test.class');
    create procedure test is language java name 'Test.test()';
    call test();
    ORA-29541: class CM.Test could not be resolved

  • UTL_DBWS - Consuming Web Services - loadjava error

    I follow the steps described in note NOTE:428775.1 - DBWS Callout Utilities User's Guide for RDBMS 10.1 or 10.2. But when I try load the WebService Client into Oracle Database Server, errors occurred as follow:
    C:\oracle\product\10.2.0\db_1\sqlj\lib>loadjava -u user/password -r -v -f -genmissing dbwsclientws.jar dbwsclientdb102.jar
    arguments: '-u' 'user/***' '-r' '-v' '-f' '-genmissing' 'dbwsclientws.jar' 'dbwsclientdb102.jar'
    creating : resource META-INF/MANIFEST.MF
    loading : resource META-INF/MANIFEST.MF
    Error while connecting with oci8 driver to default database: oracle.aurora.server.tools.loadjava.ToolsException: The JDBC OCI8 Driver is not installed properly, use -thin to try the JDBC Thin driver: C:\OraHome_1\BIN\ocijdbc10.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
    exiting : could not open connection
    How can I resolve this problem?

    Have you found the solution for this? I am having the same problem, except for on database 11.1.0.7 on Windows.
    I'm pretty sure it is because I haven't set up LOCAL correctly or have a problem with my path, but I'm having trouble finding detailed documentation...

  • Loadjava error: java.lang.UnsatisfiedLinkError ...

    Hi,
    When i try to load a jar file in the database using the following command:
    loadjava -user username/password@tnsname dist.jar
    I get this error:
    java.lang.UnsatisfiedLinkError: t2cParseExecuteDescribe
    at oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Native Method)
    at oracle.jdbc.driver.T2CStatement.executeForDescribe(T2CStatement.java)
    e.t.c.
    The db version is:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    and the JAVA option is enabled (TRUE).
    Do you have any idea, what may be the reason?
    Thank you,
    Yorgos

    Hi,
    T2C means Type 2 Client; look like you have library classpath probleme with your type 2 driver. The following posting, might help: Re: Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc 10
    aternatively, try using JDBC-Thin instead.
    Kuassi http://db360.blogspot.com

  • Loadjava error what does it mean?urgently please

    Hi,my problem is that :
    C:\TEMP>loadjava -u sys/sys -o -r -v -noverify -synonym -g public mail.zip
    arguments: '-u' 'sys/sys' '-o' '-r' '-v' '-noverify' '-synonym' '-g' 'public' 'm
    ail.zip'
    Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cParseExecuteDescri
    be
    at oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Native Method
    when ı wrote -u sys/sys instead of sys/sys@orcl this error occured why ?
    thanks!

    Hello,
    Is this related to the same issue you're having here -
    Re: urgent help about javaload command
    when ı wrote -u sys/sys instead of sys/sys@orcl this error occured why ?Are you saying that when you specify sys/sys@orcl it works ok?

  • Loadjava Error while opening file: –resolve  Exception java.io.FileNotFound

    Dears,
    I'm having Oracle 11gr2 on Windows 2008r2. I have very strange issue while trying to load ordinary Java source. I get error that loadjava can't open file. I'm using the following command in loading:
    %ORACLE_HOME%\dbhome_1\BIN\loadjava -thin -user ORAMQ/***@localhost:1521:DEVAR -verbose -fileout %C:\temp\loadjava-9-MQReasonCodeResolver.java.log C:\src\MQReasonCodeResolver.java –resolve-----
    I got the following error in the verbose file out:
    arguments: '-user' 'ORAMQ/***@localhost:1521:DEVAR' '-thin' '-verbose' '-fileout' 'C:\temp\loadjava-9-MQReasonCodeResolver.java.log' 'C:\src\MQReasonCodeResolver.java' '–resolve'
    creating : source MQReasonCodeResolver
    loading  : source MQReasonCodeResolver
    Error while opening file: –resolve
        Exception java.io.FileNotFoundException: –resolve (The system cannot find the file specified)
    creating :  –resolve
    The following operations failed
         –resolve: opening file-----
    The code is very simple and doesn't have any issue:
    import java.lang.reflect.Field;
    public class MQReasonCodeResolver
        public MQReasonCodeResolver()
        public static final String MQ_EXCEPTION_CLASS = "com.ibm.mq.MQException";
        public static final String RC_FIELD_PREFIX = "MQRC_";
        public static final String RC_VALUE_FIELD = "reasonCode";
        public static String resolve( Exception mqex )
            if ( !canResolve( mqex ) )
                return mqex.getClass().toString() + mqex.getMessage();
            Class class1 = mqex.getClass();
            try
                Field field = class1.getField( RC_VALUE_FIELD );
                Object key = field.get( mqex );
                Field[] fields = class1.getFields();
                for ( int i = 0; i < fields.length; i++ )
                    Field ff = fields;
    String name = ff.getName();
    if ( name.startsWith( RC_FIELD_PREFIX ) && ff.get( null ).equals( key ) )
    return mqex.getMessage() + " " + name;
    catch ( Exception ex )
    return "unknown";
    public static boolean canResolve( Exception exx )
    Class class1 = exx.getClass();
    while ( Exception.class.isAssignableFrom( class1 ) )
    if ( MQ_EXCEPTION_CLASS.equals( class1.getName() ) )
    return true;
    class1 = class1.getSuperclass();
    return false;
    I load other classes and no issue, even jar files, I don't know what is the problem with this file? Also, it is strange is creating class and loading it has no issue, but the issue comes when resolve.
    Can anyone help?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi:
    Put your -resolve flag at the beginning of the list of arguments.
    Latest arguments should be files to be uploaded by loadjava.
    Best regards, Marcelo.

  • Loadjava error resolving xmlparserv2.jar

    I was having problems loading the JVM on our 8.1.6 database, so I upgraded to 8.1.7 then migrated the database across. The JVM loads fine on this database. However, when I try and load the xmlparserv2.jar file using loadjava -v -r -u <uname>/<passwd> xmlparserv2.jar, I get ORA-04043 errors when it starts resolving. It seems to happen for every class. I've checked metalink for hits and checked the JVM installation according to Note:102717.1 and all seems fine. Any ideas?

    check the javavm read me file or the java developer's guide sections dealing with memory usage.
    "ava Memory Usage" is documented at :
    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a83728/perf2.htm#1005628
    You're probably running into a "too small" shared_pool, java_pool or large_pool.
    They're defined in the init.ora file.

  • Loadjava - error ORA-29552 in resolving

    Problems when loading java classes to oracle 9.0.1.
    Classes compile fine, but when using loadjava (options -t -v -r) there's errors at resolving stage.
    Here's the explanations I've found for the error (ORA-29552), but I still have no clue how to fix this?
    ORA-29552
    In some situations, the resolver allows a class to be marked valid, but will replace bytecodes in the class to throw an exception at runtime. In these cases, the resolver issues an ORA-29552 (verification warning), which loadjava will report. The loadjava tool issues this warning when the Java Language Specification would require an IncompatibleClassChangeError be thrown. Oracle JVM relies on the resolver to detect these situations, supporting the proper runtime behavior that the JLS requires.
    ORA-29552 verification warning: string
    Cause: An attempt was made to create a Java class object with bytecodes that caused the Java verifier to issue a warning.
    Action: It is possible that the Java class was created from a damaged class file, in which case the CREATE should be reattempted with a correct class file. It is also possible that the message is the result of using "-" in the resolver so that the verifier could not check the correctness of some code. In that case, the class needs to be created with a resolver.
    Any ideas?

    Hi Avi,
    Thanks for the link, just in time as I was scratching my head as to where to go! I have checked the version of Java outside the database:
    D:\oracle\product\10.2.0\dev01\jdk\bin>java -version
    java version "1.5.0_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
    Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_04-b05, mixed mode)
    I then checked an older install Oracle 10.1.x.x and the java outside is:
    C:\Documents and Settings\David>java -version
    java version "1.4.2_03"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
    Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
    This seems to indicate that the earlier release is aligned, maybe an option if all else fails.
    Regards
    David

  • Loadjava error with circular dependencies?

    I attempted to load an in-house jar file and several errors were generated. The majority of them are similar to the following:
    ORA-29534: referenced object YYYORA8I.com/osi/nx/fw/asn/AbstractType could not be resolved
    I tried to load some of the classes outside of the jar file and have recieved the following:
    loadjava -user yyyOra8i/xyz -r -v -f ComponentId.class
    initialization complete
    loading : com/osi/nx/fw/asn/ComponentId
    creating : com/osi/nx/fw/asn/ComponentId
    resolver :
    resolving: com/osi/nx/fw/asn/ComponentId
    errors : com/osi/nx/fw/asn/ComponentId
    ORA-29534: referenced object YYYORA8I.com/osi/nx/fw/asn/AbstractType could not be resolved
    loadjava: 1 errors
    So I tried to load AbstractType.class and got:
    loadjava -user yyyOra8i/xyz -r -v -f AbstractType.class
    initialization complete
    loading : com/osi/nx/fw/asn/AbstractType
    creating : com/osi/nx/fw/asn/AbstractType
    resolver :
    resolving: com/osi/nx/fw/asn/AbstractType
    errors : com/osi/nx/fw/asn/AbstractType
    ORA-29534: referenced object YYYORA8I.com/osi/nx/fw/asn/ComponentId could not be resolved
    loadjava: 1 errors
    ComponentId.class fails to load because of AbstractType.class. AbstractType.class fails to load because of ComponentId.class. Both these classes reside in the jar file.
    Any thoughts?
    Thanks.

    Give javasyspriv role to scott and execute next command: loadjava -u scott/tiger@instance -v -resolve iText-2.1.3.jar

  • Loadjava error

    I'm attempting to load some Java code into a 9i database and receive the following error. This occurs when I try to load my code as well as a third party jar. Any ideas? Thanks.
    There are several of the below type errors when loading the third party jar:
    creating : class javax/resource/spi/ResourceAdapterInternalException
    loading : class javax/resource/spi/ResourceAdapterInternalException
    Error while creating class javax/resource/spi/ResourceAdapterInternalException
    ORA-06550: line 1, column 91:
    PLS-00201: identifier 'NameFromLastDDL' must be declared
    ORA-06550: line 1, column 85:
    PL/SQL: Statement ignored
    creating : class javax/resource/spi/EISSystemException
    loading : class javax/resource/spi/EISSystemException
    Error while creating class javax/resource/spi/EISSystemException
    ORA-06550: line 1, column 91:
    PLS-00201: identifier 'NameFromLastDDL' must be declared
    ORA-06550: line 1, column 85:
    PL/SQL: Statement ignored
    creating : class javax/resource/spi/CommException
    loading : class javax/resource/spi/CommException
    Error while creating class javax/resource/spi/CommException
    ORA-06550: line 1, column 91:
    PLS-00201: identifier 'NameFromLastDDL' must be declared
    ORA-06550: line 1, column 85:
    PL/SQL: Statement ignored
    Below is from my class:
    Error while creating class spmq
    ORA-06550: line 1, column 91:
    PLS-00201: identifier 'NameFromLastDDL' must be declared
    ORA-06550: line 1, column 85:
    PL/SQL: Statement ignored
    The following operations failed
    class spmq: creation (createFailed)
    exiting : Failures occurred during processing

    I wasnt spamming......I had not received a reply in the other forum and thought that my question was more generalized so I moved it.

  • Loadjava error while installing Login Server

    Hello,
    I am having some difficulty installnig the login server. The log shows an error
    in the linstall.cmd where the script is trying to load the SSOHash class.
    The error message says that the user does not
    have privileges to add a class to a restricted package.
    Due to this error, subesquent pkgs are invalid.
    Please help

    Fixed it by reinstalling JVM as follows:
    To install the required Java classes, perform the following commands:
    1. Connect as SYS User.
    2. Run %ORACLE_HOME/javavm/plsql/jlib/initjvm.sql
    3. Run %ORACLE_HOME/rdbms/admin/initplsj.sql
    4. Rerun Oracle Portal 3.0 Configuration Assistant
    Eveything works now.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Seni Williams ([email protected]):
    I have the same problem. Platform is Windows 2000 Professional, Oracle db EE 8.1.7. Oracle 9iAS 9.0.2.
    Tks<HR></BLOCKQUOTE>
    null

  • Loadjava error - ORA-29552

    Hi,
    Trying to load java into the database and get the following errors on some of the classes it is trying to generate:
    ORA-29552: verification warning: java.lang.UnsupportedClassVersionError: genproxy/types/ViewProfile (Unsupported major.minor version 49.0)
    Further down I get the following where resolving is trying to sort it out:
    bad class file: null
    class file has wrong version 49.0, should be 48.0
    Anyone help me with what this means and how I can resolve this?
    Regards
    David

    Hi Avi,
    Thanks for the link, just in time as I was scratching my head as to where to go! I have checked the version of Java outside the database:
    D:\oracle\product\10.2.0\dev01\jdk\bin>java -version
    java version "1.5.0_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
    Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_04-b05, mixed mode)
    I then checked an older install Oracle 10.1.x.x and the java outside is:
    C:\Documents and Settings\David>java -version
    java version "1.4.2_03"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
    Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
    This seems to indicate that the earlier release is aligned, maybe an option if all else fails.
    Regards
    David

  • Cannot run loadjava

    loadjava does not seem to work for me on RHAT 6.2 and DB version is EE 8.2. When I go to $ORACLE_HOME/bin, I can see the loadjava utility throught ls command. The following commands do not run loadjava, but issue out error - no such file or directory. Can anyone please help.
    1) loadjava - error is no such file or directory
    2) ./loadjava - error is no such file or directory
    3) u01/app/oracle/product/8.1.6/bin/loadjava - same error
    Thanks.
    linuxoracle.

    hi,
    I found it. Go to $ORACLE_HOME/JRE/bin. There is loadjava command. It is script. Edit script in your favourite editor and change first line, it looks like this:
    #! /bin/ksh
    but should be
    #! /usr/bin/ksh.
    It is correct for my machine. I use Corel Linux I aka Debian. To be sure try this:
    $ which ksh
    /usr/bin/ksh
    $
    Radek
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by linuxoracle():
    loadjava does not seem to work for me on RHAT 6.2 and DB version is EE 8.2. When I go to $ORACLE_HOME/bin, I can see the loadjava utility throught ls command. The following commands do not run loadjava, but issue out error - no such file or directory. Can anyone please help.
    1) loadjava - error is no such file or directory
    2) ./loadjava - error is no such file or directory
    3) u01/app/oracle/product/8.1.6/bin/loadjava - same error
    Thanks.
    linuxoracle.<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • Does the ipad mini have a read aloud app

    Does the mini ipad have a read aloud function or do you need to downoad an app?

  • How to remove white bounding text box

    Hi, I'm a multimedia student and need to create a portfolio in Director and would like to know how to remove the white text box when writing text content? I already have a background and would like to have plain black or white writing on the bakgroun

  • How to create Rows in Database with EJB3.0 Entities - Relationship Problem

    Hi, I don't have much experience in writing Entity Java Beans, so if some questions are "dummy-questions", I apologize for that. Actual state: I have implemented Entity Java Beans with relationships between them. I can deploy them to JBOSS AS and eve

  • Report by Application Object Name

    have zen7sp1ir1 i want to generate a report, by application object name, if it is distributed to the workstation. ( sucssess failed etc ) is it possible to do so? how ? helge

  • Playlist sorting not alphabetical?

    Can someone explain to me the method the iPod uses to sort a list of playlists? I can't make any sense of it, and I'm trying to name them so they show in a particular order. For instance, here's the list of playlists, and how they are sorted in iTune