Nov 272012
 
 Posted by on November 27, 2012 at 7:15 pm Application Servers, FAQ, Java App Servers, Must Know's, Oracle/BEA WebLogic Tagged with:  Add comments

You can not deploy a standalone JAR onto WebLogic Server without deployment lifecycle.
You need to package the Applet JAR inside a WAR file to be able to deploy it on WLS i.e. you need to create a WAR file that includes JAR, WEB-INF folder and web.xml.

There are two options available for deploying WAR on WLS (1) deploy a packaged .war OR (2) deploy WAR file in exploded format

Option 1:-
The following steps can be followed to create a WAR file.
- create an empty web.xml as shown above article
- create WEB-INF folder under project root
- put the Applet jar in project root i.e. say folder <WL_DOMAIN>/mycontext
- choose the <WL_DOMAIN>/mycontext folder to be deployed on WLS
- access a link in the browser http://hostname:7001/mycontext/jarFile.jar

Option 2:-
Below are the steps to create a deployable exploded directory for the Applet JAR :-
- create empty web.xml
- create WEB-INF folder under project root
- put the Applet jar in project root
- With ‘jar’ command in path, please run the command ‘ jar cvf ../mycontext.war . ‘ . This creates a war file mycontext.war in a folder above the project root folder.
- deploy mycontext.war
- access a link in the browser http://hostname:7001/mycontext/jarFile.jar

Ramakanta

A Middleware Consultant, skilled in project implementation of J2EE Applications on Application Servers like WebSphere, WebLogic, JBoss and Tomcat, etc. My job includes Infrastructure Planning, Design, Administrative Developments, support, Installation, Configuration, Failover, High Availability, Performance Monitoring/Tuning, Analyzing and Debugging server/application/platform issues.

More Posts - Website

Follow Me:
TwitterFacebookGoogle Plus

Found Useful? +1 this post.

Did Not Find The Exact Solution..? Put A Comment With Your Question, Our Expert Tech Members Will Get Back To You!!

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Stats