It's all about Weblogic..!!

June 19, 2010

Steps to build a wlfullclient.jar in WLS 10.0.x and WLS 10.3.x

Filed under: Core — streethawkz @ 8:20 pm
Steps to build a wlfullclient.jar :
.
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.
.
For WLS 10.3.x follow the steps below to create the jar file :
.
Creating a wlfullclient.jar for JDK 1.6 client applications
.
Use the following steps to create a wlfullclient.jar file for a JDK 1.6 client application:
- Change directories to the server/lib directory.
cd WL_HOME/server/lib
- Use the following command to create wlfullclient.jar in the server/lib directory:
java -jar wljarbuilder.jar
- You can now copy and bundle the wlfullclient.jar with client applications.
- Add the wlfullclient.jar to the client application’s classpath.
——-
Creating a wlfullclient5.jar for JDK 1.5 client applications :
.
- Change directories to the server/lib directory.
cd WL_HOME/server/lib
- Use the following command to create wlfullclient.jar in the server/lib directory:
java -jar wljarbuilder.jar -profile wlfullclient5
- You can now copy and bundle the wlfullclient5.jar with client applications.
- Add the wlfullclient5.jar to the client application’s classpath.
——–
Note : In WLS 10.0, you dont have wljarbuilder.jar, instead the steps for creating wlfullclient.jar is little bit different, where you dont need wljarbuilder.jar
.
Below are the steps to create the jar file in WLS 10.0.x :
.
Creating a wlfullclient.jar File for a Client Application
Use the following steps to create a wlfullclient.jar file for a client application:
- Change directories to the server/lib directory.
cd WL_HOME/server/lib2.Use the following command to create wlfullclient.jar in the server/lib directory:
java -jar ../../../modules/com.bea.core.jarbuilder_X.X.X.X.jar
where X.X.X.X is the version number of the jarbuilder module in the WL_HOME/server/lib directory.
For example:
java -jar ../../../modules/com.bea.core.jarbuilder_1.0.1.0.jar.
You can now copy and bundle the wlfullclient.jar with client applications.
- Add the wlfullclient.jar to the client application’s classpath
Check the below document for the same
——–
Below is a sample build.xml :
.
<project name=”JarBuilder” default=”run”>
<property name=”bea.home” value=”C:/Bea10MP1″/>
<property name=”wl.home” value=”C:/Bea10MP1/wlserver_10.0″/>
<path id=”main.class.path”>
<pathelement path=”${bea.home}/modules/com.bea.core.utils.full_1.0.1.0.jar”/>
<pathelement path=”${bea.home}/modules/com.bea.core.jarbuilder_1.0.1.0.jar”/>
<pathelement path=”${bea.home}/modules/com.bea.core.utils_1.0.1.0.jar”/>
<pathelement path=”${bea.home}/modules/features/weblogic.client.modules_10.0.1.0.jar”/>
<pathelement path=”${java.class.path}”/>
</path>
<target name=”run”>
<echo message=”***** This 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 ../../../modules/com.bea.core.jarbuilder_1.0.1.0.jar”/>
<–!( for WLS10.3.x modify the above line to : <jvmarg value=”-d ${wl.home}/server/lib -jar wljarbuilder.jar )–>
</java>
</target>
</project>
——–
Unexpected Behaviour :
.
While installing WLS if you change the path of weblogic home (i.e instead of <bea_home>/<weblogic_home> to anything like <bea_home>/<any_folder>/<weblogic_home> the jar biulder throws the following exceptions and fails to build the jar file )
Eg :
If
“bea.home” value=”C:/Bea10MP1″/>
“wl.home” value=”C:/Bea10MP1/puneeth/wlserver_10.0″/>
Exception :
[java] java.util.zip.ZipException: No such file or directory
[java]     at java.util.zip.ZipFile.open(Native Method)
[java]     at java.util.zip.ZipFile.<init>(ZipFile.java:203)
[java]     at java.util.jar.JarFile.<init>(JarFile.java:132)
[java]     at java.util.jar.JarFile.<init>(JarFile.java:97)
[java]     at com.bea.jarbuilder.internal.CompositeJar.integrateJar(CompositeJar.java:83)
[java]     at com.bea.jarbuilder.internal.CompositeJar.processFeature(CompositeJar.java:204)
.
WorkAround :
.
Place the modules folder one level above the <bea_home> ( which is the default structure )
i.e Manually copy the modules folder along with the required jar files to the default location  i.e ” C:/Bea10MP1/modules/ “
.
Now you will be able to run the jarbuilder successfully. :)
About these ads

4 Comments »

  1. тебе Привет! Жду вас наМобильном сайте у нас лучший супер мобильный софт.Ура!

    Comment by mobilioni0 — December 30, 2011 @ 5:48 pm

  2. 89122388753
    , , , .
    , . – e” , , , .
    : . (18%)


    , .
    4 3
    40-70 3500
    20-40 3750
    5-20
    0-10
    4000
    2500

    Comment by koly — January 16, 2012 @ 6:58 am

  3. Please let me know if you’re looking for a writer for your weblog. You have some really great articles and I believe I would be a good asset. If you ever want to take some of the load off, I’d love
    to write some material for your blog in exchange for
    a link back to mine. Please send me an e-mail if interested.
    Many thanks!

    Comment by ροχαλητο θεραπεια — February 12, 2013 @ 3:57 pm

  4. You actually make it appear really easy together with your presentation however I find this matter to be
    really one thing that I think I’d never understand. It seems too complicated and very extensive for me. I’m having a look
    ahead for your next publish, I will attempt to get the hang of it!

    Comment by look at this — May 8, 2013 @ 5:17 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Silver is the New Black Theme. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: