File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Oracle/OAS and the fly likes loadjava -resolve weblogic.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "loadjava -resolve weblogic.jar" Watch "loadjava -resolve weblogic.jar" New topic
Author

loadjava -resolve weblogic.jar

Kristof Camelbeke
Ranch Hand

Joined: Nov 28, 2001
Posts: 97
Hello,

I'm trying to load the weblogic.jar into Oracle but I'm having
problems resolving the classes.
I use the loadjava utility : loadjava -user schema -resolve
weblogic.jar

I have used the option -resolve but I still receive ORA-29534 errors
complaining that certain references in a class cannot be resolved. I
thought with this option the classes are loaded first and then the
resolving begins...
Anybody knows the answer to this ?

Any help would be appreciated !

Thanks,

Kristof
Di Dong
Greenhorn

Joined: Sep 12, 2004
Posts: 6
Is that required to load weblogic.jar into the database?
So, to clear the error I need to know why you need weblogic.jar?
Kristof Camelbeke
Ranch Hand

Joined: Nov 28, 2001
Posts: 97
Well I have a trigger and when the condition is met a Java Stored Procedure is started... This JSP sends a JMS message to a Weblogic JMS queue where a MDB is listening. So my JSP needs certain libraries of the Weblogic.jar + J2ee stuff.
I have read on a website that you have to load the jar in the DB since it is not possible to work with a classpath in Oracle. So the whole jar is unzipped in Oracle but many classed are not resolved and are invalid....

Anybody an alternative way or a solution ??
thanks in advance,
Kristof
Di Dong
Greenhorn

Joined: Sep 12, 2004
Posts: 6
You can use wlclient.jar and wljmsclient.jar to replace weblogic.jar to load to Oracle. The size is perfect.

If you really need to load the weblogic.jar to oracle, you need to prepare:

1. a larg size of java pool.
2. Enough space for your schema datafile.
3. The DBA role for the loader.
4. modify the loadjava.bat, the last line need to be:

"C:\Program Files\Oracle\jre\1.3.1\bin\java" -Xms100M -Xmx200M %javaprops% -classpath %jreclasspath% oracle.aurora.server.tools.loadjava.LoadJavaMain %args%
if "%OS%" == "Windows_NT" endlocal

You need 15 minutes around to load the whole jar file into your schema.

Good Luck.
Kristof Camelbeke
Ranch Hand

Joined: Nov 28, 2001
Posts: 97
Thanks for you info... I'm still having problems though :roll:
I have tried to load the wlclient.jar and the wljmsclient.jar in the database but I'm still having these unresolved errors.

For example when I try to load the wlclient.jar the first errror I receive is the following :
errors : class weblogic/corba/client/ClientORBInitializer
ORA-29534: referenced object GENESIS.weblogic/corba/client/security/ClientSecurityManager could not be resolved
errors : class weblogic/corba/client/cluster/ClusterComponentHelper
ORA-29521: referenced name org/omg/CORBA/ObjectHelper could not be found
errors : class weblogic/corba/client/cluster/ClusterComponentHolder
ORA-29534: referenced object GENESIS.weblogic/corba/client/cluster/ClusterComponentHelper could not be resolved
errors : class weblogic/corba/client/cluster/ClusterInterceptor
ORA-29534: referenced object GENESIS.weblogic/corba/client/cluster/ClusterComponentHelper could not be resolved


So this means that in the class class weblogic/corba/client/ClientORBInitializer there is a reference to other classes but these classes are also in the same jar file !!! I use loadjava with the resolve option but it doesn't seem to resolve anything because the ClientORBInitializer class is loaded first and therefore the references cannot be resolved...
Or am I doing something wrong ??

Thanx for any advice...

Kristof
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: loadjava -resolve weblogic.jar