Hi,
WebLogic Server 10.0 and higher releases, client applications should use the wlfullclient.jar
file to provide the WebLogic Server specific functionary previously provided in the weblogic.jar
file. You can generate the wlfullclient.jar
file for client applications using the JarBuilder tool. Here is a Simple ANT script to Build the “wlfullclient.jar” JAR Using ANT Script.
NOTE: Plesae be aware of the limitation/BUG associated with the “wlfullclient.jar” wlfullclient.jar BUG … It never works with WLST
Step1). Place the following “build.xml” file in WebLogic Installations Server/lib directory….
Example: “C:bea103wlserver_10.3serverlib” place build.xml here
Note this is mendatory that u place the build.xml file inside the above mentioned location or else u will have to edit the following XML file a lot…
<project name="JarBuilder" default="run"> <property name="bea.home" value="C:/bea103"/> <property name="wl.home" value="${bea.home}/wlserver_10.3"/> <path id="main.class.path"> <pathelement path="${bea.home}/modules/com.bea.core.utils_1.4.0.0.jar"/> <pathelement path="${bea.home}/modules/com.bea.core.jarbuilder_1.2.0.0.jar"/> <pathelement path="${java.class.path}"/> </path> <target name="run"> <echo message="***ANT Script should run from inside the ${wl.home}/server/lib *****" /> <echo message="***** ********* ********* *****" /> <java classname="com.bea.jarbuilder.JarBuilder"> <classpath refid="main.class.path"/> <jvmarg value="-d ${wl.home}/server/lib -jar wljarbuilder.jar"/> </java> </target> </project>
Step2). Modify th Properties defined in the ANT script according to your Installation directory:
<property name=”bea.home” value=”C:/bea103″/>
<property name=”wl.home” value=”${bea.home}/wlserver_10.3″/>
Step3). Open a command prompt and the Run the ANT script…means open a command prompt run the setWLSENV.cmd then run Ant…
Once the ant script executed successfully…you will find “wlfullclient.jar” is generated in “C:bea103wlserver_10.3serverlib” location
.
.
Thanks
Jay SenSharma
May 20th, 2010 on 3:04 am
excuse my ignorance, what is the uso for wlfullclient.jar? im just learning about weblogic and enterprise applications :$
May 20th, 2010 on 4:36 am
Hi Mauro,
Whenever a we deploy some applications like JMS/EJB/JMX/WebServices….etc based applications in WebLogic Server. We need some clients should invoke those Services & Applications. So client needs some WebLogic Specific Classes at his end (Client end)… So rather than adding a lots of WebLogic Specific Jars at Client side ….we can make this “wlfullclient.jar” and can provide it to the Clients. Sothat they need to add this single Jar file to interact weith Applications which is deployed on WebLogic Server.
This Jar File Size will be approximately…which supports almost all protocols like IIOP/T3/CORBA/Http/Https/Jms….etc.. so it’s a very powerful Jar file. And it is always recommended that client should use this Jar file to avoid many NoClassDefErrors… and some Corba related errors.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
May 20th, 2010 on 11:51 am
Thanx dude, it’s clear now!! Great Blog!
June 18th, 2010 on 5:28 am
Hello dude… i did a wlfullclient.jar but i had problems with NoClassDefErrors… the size of the wlfullclient.jar was 60 MB and my build.xml was this
can u help me with this?, i think not all jars were included in the wlfullclient
thanx in advance
June 18th, 2010 on 9:32 am
Hi Mgaldames,
“wlfullclient.jar” contains almost all the classes which are required to Interact with weblogic server. But it doesn’t contains third party Jars and advanced WLS classes contents inside it. Can u please specify which class is missing? the fully qualified classname. Better if you can post the complete Stack trace.
Customizing the “wlfullclient.jar” is not recommended.
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
June 18th, 2010 on 5:57 pm
hello, this is the error:
Exception in thread “main” java.lang.NoClassDefFoundError: weblogic/xml/schema/binding/util/ClassUtil$ClassUtilException
at weblogic.wsee.jaxrpc.ServiceImpl.(ServiceImpl.java:83)
at com.test.activacionbb.webservice.cliente.ActivacionWebServices_Impl.(Unknown Source)
at com.test.activacionbb.webservice.cliente.ActivacionWebServices_Impl.(Unknown Source)
at ws.cliente.Cliente.(Cliente.java:17)
at ws.cliente.Cliente.main(Cliente.java:22)
—–
I have to put some jars from wl_home/server/lib and then it works… i load like 10 jars but i dont know if all of them are what i need
Thanx for ur response 🙂
June 18th, 2010 on 9:43 pm
Hi Mgaldames,
I m not sure about which version of weblogic are u using, But based on my research on WLS10.3.0 and WLS10.3.2 i have found that the missing class is present in the following Jars. Ideally these should be included in the “wlfullclient.jar” but i m not sure why this is not being included as part of that Jar. But if you want to use this class in the client side then i think we are force to add the below Jar files along with “wlfullclient.jar”…
===============================================
Found: weblogic.xml.schema.binding.util
Class: weblogic.xml.schema.binding.util.ClassUtil$ClassUtilException
Package: weblogic.xml.schema.binding.util
Library Name: webservices.jar
Library Path: C:bea103wlserver_10.3serverlibwebservices.jar
===============================================
Found: weblogic.xml.schema.binding.util
Class: weblogic.xml.schema.binding.util.ClassUtil$ClassUtilException
Package: weblogic.xml.schema.binding.util
Library Name: wseeclient.jar
Library Path: C:bea103wlserver_10.3serverlibwseeclient.jar
===============================================
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
August 23rd, 2010 on 12:14 pm
I m getting the below error when i try to run the build script for building wlfullclient.jar
java.lang.UnsupportedClassVersionError: com/bea/jarbuilder/JarBuilder (Unsupported major.minor version 49.0)
August 23rd, 2010 on 12:33 pm
Hi Kiruthika,
Please set the Correct JAVA_HOME …this error indicates that your JDK belongs to a Lower version …. than the JDK in which the Class “com/bea/jarbuilder/JarBuilder” was compiled.
Please follow the below Steps:
1). In WINDOWS OS Please run “setWLSEnv.cmd” before running your Commands.
2). If using Unix Based OS then :
Step1). Open a Shell Prompt.
Step2). echo $CLASSPATH … Just to see what is the current CLASSPATH value.
Step3). run the “setWLSEnv.sh” by adding two DOTs separated by a single space …..before the actual script like following : (use ‘cd’ command to move inside the /wlserver_10.3/server/bin) then run the following command….
. ./setWLSEnv.sh
Note: the first DOT represents that set the Environment in the current Shell, AND the second ./ represents execute the script from the current directory.
Step4). Verify that the Path and Java Versionis Set properly or not:
echo $PATH
java -version
Step5). Now u can run your command
.
.
Keep Posting 🙂
Thanks
Jay SenSharma
August 23rd, 2010 on 1:43 pm
Hi Jay SenSharma,
I am able to deploy now without any issues.
Thanks a lot.
This site is of great help to me. 🙂
Regards,
Kiruthika
August 23rd, 2010 on 2:20 pm
Hi Jay SenSharma,
Is there any possibility to include setWLSEnv.sh in build.xml and set classpath?
August 23rd, 2010 on 2:23 pm
Hi Jay SenSharma,
Please let me know if we can run setWLSEnv.sh or we can set class path using build.xml
August 23rd, 2010 on 2:34 pm
Hi Kiruthika,
You can use the techniques described in the following link to set the Classpath inside your ANT Script: http://middlewaremagic.com/weblogic/2010/03/16/classpath-settings-in-ant-task/
Like Following:
<property name=”WL_HOME” value=”C:/bea103/wlserver_10.3″ />
<path id=”project.classpath”>
<pathelement path=”${java.class.path}”/>
<fileset dir=”${WL_HOME}/server/lib”>
<include name=”*.jar” />
</fileset>
</path>
.
.
Keep Posting 🙂
Thanks
Jay SenSharma