Deploy Application on Oracle WebLogic Server

This post is next in series “Learn WebLogic with Us“,  Till now we learned

This post covers steps to deploy application (ear, war, jar) on Oracle WebLogic Server

.

Things good to know before deploying application on Oracle WLS

i) User with Admin or Deployer role can deploy application

ii) Weblogic supports following type of deployment unit
a) EAR file (Enterprise Archive)
b) WAR file (Web Archive)
c) JAR files, EJB (Enterprise Java Beans)
d) RAR (Resource Adapter/Connector )
e) Web Services (WAR/JAR)
f) J2EE Library
g) CAR (Client Application Archive)

—  Web Archive configuration file is usually …../WEB-INF/web.xml
—  Enterprise Application (EAR) configuration file is usually …/META-INF/application.xml

iii) Application name can contain only following character (a-z, A-Z, 0-9, underscore, hyphen, . period/dot)

iv) Application name with only period/dot (like . or .. or …) is not valid name, it should contain at least one other character.

v) Application Name should be 215 character or less

.

Tools used to deploy/configure applications

1) weblogic.Deployer – command line interface
2) Administration Console – Web based interface
3) WLST(WebLogic Scripting Tool) – command line tool to automate deployment configuration and operation
4) Tool for developers (wldeploy, weblogic.PlanGenerator, API, autodeploy)

.

Steps to Deploy Application using Administration Console

In this post I’ll cover steps to deploy application using Administration Console

Download Sample Application from here  use this file to deploy on WebLogic Server.

1. Start Administration Console if its not Up already (In my case Administration Server is listening on port 7001)

 

deployment 2

2) Access Administration console using URL http(s):// <hostName>:<port>/console 

3) Login using User (with admin or deployer role)  weblogic in my case

4) First step is to acquire Lock as shown in screen

5) Click on deployment

6) Click on Install button

7) Select Application (war, jar, ear) File . You should get this application (war, ear, jar) file from development team.

8) Select Install this deployment as Application and click Next

9) Activate Canges by clicking on button on left as shown in screen

10) Start Application by clicking on Start Button

 

.

.

Access Video on How to deploy application on WebLogic from here

Did you get a chance to download Free Interview Questions related to WebLogic? If not, download it here http://k21academy.com/weblogic-interview-question

weblogic banner

Learn Oracle Weblogic Server Administration

 

If you want to learn Oracle WebLogic Server Administration with tons of additional features like Live Interactive Sessions, Life time access to membership portal, Free re-taking sessions for next one year, Dedicated Machine to practice, On Job Support and much more

Click here to know more

About the Author Atul Kumar

Oracle ACE, Author, Speaker and Founder of K21 Technologies & K21 Academy : Specialising in Design, Implement, and Trainings.

follow me on:

Leave a Comment:

42 comments
Recent Faves Tagged With "weblogic" : MyNetFaves says August 13, 2008

[…] Oracle releases BEA Workshop as a free eclipse plugin First saved by meganashley | 1 days ago Deploy Application on Oracle WebLogic Server First saved by sporty04 | 1 days […]

Reply
gani says September 18, 2008

am newbie and all the stuff what u hav posted here are really very helpfull.
thanks a bunch for your posts.
please keep posting for us.

regards
gani

Reply
M. Kim says November 4, 2008

thank you for this website. tremendous information!

I followed all steps here,
When I click ‘Start’ button to start ‘Servicing all requests’ of jspExpressionEar, got this error. wouldn’t start. any idea?

Message icon – Error java.lang.Exception: [DeploymentService:290049]Deploy failed for id ‘1,225,844,443,766’ since no targets are reachable.

Thanks in advance.

Kim,

Reply
M. Kim says November 5, 2008

Found an answer for this.
I didn’t add a Admin server as a target in a cluster case.

Reply
M. Kim says November 17, 2008

After deployed jspExpressionEar application.
When I clicked this url http://localhost.localdomain:7001/jspExpressionEar, got this error.

“Error 404–Not Found”
10.4.5 404 Not Found

Any idea?

Reply
Atul Kumar says November 17, 2008

404 means there is no such page to serve from web server .

Was there any error while deploying this application (ear) ?

Reply
M. Kim says November 17, 2008

No, didn’t get any errors during deployment.
Where do the web things go? maybe under domain?

thank you for quick reply.

Reply
nsync says December 11, 2008

Good work. Keep going and thank you.

Reply
mahendrathacker says March 27, 2009

Can you also please post instructions to deploy application via scripts – shell or perl or Weblogic scripting lang
TIA

Reply
Rajeswari says April 13, 2009

Hi,

Thanks for posting the new concept weblogic server 10.3.
I have some doubt regarding deployment in wls-10.3
Multiple applications can be deployed at a time on wls-10.3–How it is possible
please clarify……
Thanks in advance
Rajeswari kanchamireddy

Reply
Ramesh says July 13, 2009

Hi
Nice article to get started

please provide step by step deployment of entity beans in oracle weblogic 10.3, using eclipse, and how to configure jms.

Reply
Samy says September 22, 2009

Hello,

I’m using weblogic 10.3.

I have problem when i run a web application.
The problem is accured when weblogic try to compile jsp page that contains such syntax :

<jsp:param name=”messageKey” value=”” />

When i change this assertion to :

<jsp:param name=”messageKey” value=”” />

It works fine..

This problem is general with all syntax like this : value=”<%=%>

It’s a big problem, becaus the application contains more than 2000 jsp pages..

Are there any special config to add to weblogic configuration files to resolve this problem ?

Thanks

Reply
prashanth says December 16, 2009

Hi,

I am using weblogic 10.0 The problem is I am getting ” java.lang.Exception: [DeploymentService:290049]Deploy failed for id ‘1,260,961,264,281’ since no targets are reachable” eventhough ManagedServer is running please help..

Prashanth

Reply
duongminh says January 6, 2011

Hi,
I deployed as you said, but i have problem, can you help me?
java.lang.NoSuchMethodException: oracle.j2ee.ws.wsdl.extensions.soap.SOAPBindingImpl.getElementType()

Reply
Roberto says May 1, 2011

Your Site contents are in Danger … it is being copied and pasted by the below Blog:

http://onlineappsdba.com/index.php/2008/08/12/deploy-application-on-oracle-weblogic-server/

Is Copied by following:

http://narayanasetti.blogspot.com/2011/04/deploy-application-on-oracle-weblogic.html

There are many more articles in the above blog which is completely copied and pasted from your Site.

Thanks
Roberto Beeman

Reply
Roberto says May 1, 2011

Your Site contents are in Danger … it is being copied and pasted by the below Blog:

http://onlineappsdba.com/index.php/2008/11/04/jdbc-java-database-connectivity-in-oracle-weblogic-overview/

Is Copied by following:

http://narayanasetti.blogspot.com/2011/04/jdbc-java-database-connectivity-in.html

There are many more articles in the above blog which is completely copied and pasted from your Site.

Thanks
Roberto Beeman

Reply
Atul Kumar says May 1, 2011

@ Roberto,
Thnaks Roberto for sharing information. I’ll contact author Narayan Setti and ask him not to copy content.

Reply
Madhavi says August 9, 2011

Hi Atul,
Could you please share some info on web services and what is the process when a soap message is fired , how the message is directed to a aprticular java class.
thanks in advance.. 🙂

Regards
Madhavi

Reply
Gupta says October 21, 2011

Hi Atul,

I tried to deploy a war file into the weblogic server using adminconsole but it needs some supporting files(having database details. I deployed that in JBOSS application server and it is working fine for me. Coming to weblogic i confused that how can i supply those supporting files to the deployed war file.
can you please help me on that?

Reply
Mani says October 25, 2011

Hi Atul,

I am trying to deploy a war file into weblogic 10.3.5.0.

That war file needs some support data(Like database details) while running.

I stored that data into an external xml file which is out from war file.

Now my doubt is How can supply that external xml file values to my war file deployed in weblogic server?

Please send me solution for this….

Thanks & Regards,
Mani Katakam

Reply
raj says October 27, 2011

What should be the default installation folder Weblogic installation in Solaris Cluster. Is it right if we use the Globalfs as /weblogic for installation. Will there be any performance issues arise. What is the best practice in case
if Solaris OS cluster is used.
Thanks for adivse.

Regards,
Raj

Reply
Suresh says December 28, 2011

Hi,

When I am trying to deploy the ear file got the below error.

weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false

Could you please help me to Resolve the issue.

Regards,
Suresh

Reply
Atul Kumar says December 28, 2011

@ Suresh,
You need to deploy library adf.oracle.domain on to managed/admin server on which you are deploying this application.

From admin server go to “deployments” and then click on adf.oracle.domain(1.0,11.1.1.2.0)

select tab targets and then select server on which you wish to deploy application.

Reply
Suresh says December 28, 2011

Hi Atul,

Thanks for the quick response. The issue is resolved.

Facing one more issue which is as java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener

I have removed the library and deployed. I am facing one more issue now, the issue I am facing is “Unresolved Webapp library references” error. Please help me to resolve this.

Regards,
Suresh

Reply
stalin says January 20, 2012

Hi,

I am facing issues when i deploy the webapplication .war file; since the application is made using frame work, I am unable to deploy it successfully.

is there any solution to get this done? sharing solutions would be appreciated.

Thanks,

Reply
Atul Kumar says January 20, 2012

@ stalin,
What is error message at time of deployment ?

Is this custom app (war file) ?

Did it ever work on any other environment ?

Reply
stalin says January 21, 2012

Hi Atul,

The error description is given below; your help would be appreciated. Thanks for giving quick response!

1- Error An error occurred during activation of changes, please see the log for details.

2 weblogic.application.ModuleException:

3 – Error Substituted for missing class org.springframework.beans.factory.UnsatisfiedDependencyException – Error creating bean with name ‘loginBeanId’ defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Unsatisfied dependency expressed through bean property ‘selectedMenuList’: Error creating bean with name ‘searchManager’ defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean ‘miscDAO’ while setting bean property ‘miscDAO’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘miscDAO’ defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Cannot resolve reference to bean ‘sessionFactory’ while setting bean property ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Errors in named queries: findAllWhereQADone

Reply
stalin says January 21, 2012

I forgot to tell you; this war deployment works fine in Tomcat 7 and lower version too…

Reply
joe says January 25, 2012

Hello, How to get an app in the weblogic managed server to access a site through a proxy server

(The server where weblogic running is on a private ip so need to use a proxy to communicate outside)

Thx

Reply
Mithra says June 10, 2012

Hi ,

I am new to Apps and having some basic clarification.

I have an application folder taken from 10g which hold the jsps, classes, html, images etc in the Directory structure. I need to deploy it in 11g. The confusion here is all about the jsps and web.xml

Need your help on this 🙂

Thanks & Regards.

Reply
Ashish says June 19, 2012

Hi Atul,

I have deployed an war file on weblogicserver and it was installed correctly .But when I start the application it was throwing error ” <Failure occurred in the execution of deployment request with ID '1340128716946' for task '18'. Error is: 'weblogic.management.DeploymentException: [Deployer:149003]Unable to access application source information in '/opt/VAA/user_projects/domains/CWP_ACC/servers/CWPManagedServer1/stage/iFlightWeb_CWP/iFlightWeb_CWP.war' for application 'iFlightWeb_CWP'. The specific error is: [Deployer:149158]No application files exist at '/opt/VAA/user_projects/domains/CWP_ACC/servers/CWPManagedServer1/stage/iFlightWeb_CWP/iFlightWeb_CWP.war'..'
"

Please advise me what is wrong.I need you urgent help.

Thanks,
Ashish

Reply
Ashish says June 20, 2012

@Atul : Please help me on the above post.

Thanks,
Ashish

Reply
Selvan says September 20, 2012

Hi,
i installed ODSEE -11.1.1.3.0 and created a war file, using web logic i am trying to deploy the war file. I got weglogic version 10.0. while deploying the war file – i am getting an error saying – unsupported java class version 50.0.

what shoukd i do..
wats the combination of versions which i can try and use.

Reply
Ashish says September 20, 2012

Hi Slevan,

Use the version jdk1.6.0_04 which can be downloaded from Oracle website.The file name there is “jdk-6u4-solaris-i586.sh”

Thanks,
Ashish

Reply
ivan says May 31, 2013

DeploymentService:290049]Commit failed message received for id 1,370,020,209,686

Reply
sudhakar tripathi says January 3, 2015

I deployed demantra war file in weblogic 10.3.6 when i am trying to access worksheet or workflow an exeption throws from browser this page or file cant view close the window

Please help

Regards
sudhakar tripathi

Reply
swami says January 31, 2015

hi frnds,

how to deployed oracle 112g forms on weblogic server? plz any one shared documents or links

Thanks,
swami

Reply
car crash fail compilation 2015 says February 26, 2015

Great article! This is the kind of info that are suplosed to be shared across the
web. Disgrace on Google for noow not positioning this post higher!

Come on over and discuss wit my web site . Thanks
=)

Reply
nikhilesh says August 22, 2017

I have deployed ear file on weblogic 12.2.1. When i try to start “servicing all requests” the status has been shown as failed
Status: start Failed

when I opened the log file it shows following error:

<Failure occurred in the execution of deployment request with ID "1035937271430509" for task "4" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.lang.NullPointerException"
weblogic.application.ModuleException: java.lang.NullPointerException
at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at com.iflex.fic.common.Log4jLogger.initialize(Log4jLogger.java:116)
at com.iflex.fic.common.Log4jLogger.initializeLog4j(Log4jLogger.java:55)
at com.iflex.fic.ficml.FICMaster.init(FICMaster.java:130)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:343)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:294)
Truncated. see log file for complete stacktrace

<Stack trace for message 149004
weblogic.application.ModuleException: java.lang.NullPointerException
at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:233)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:228)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at com.iflex.fic.common.Log4jLogger.initialize(Log4jLogger.java:116)
at com.iflex.fic.common.Log4jLogger.initializeLog4j(Log4jLogger.java:55)
at com.iflex.fic.ficml.FICMaster.init(FICMaster.java:130)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:343)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:294)
Truncated. see log file for complete stacktrace

Reply
Mustak says January 8, 2018

Dear Atul, Can we deploy Hyperion , SOA and Obiee applications on one weblogic server in order to decrease the number of weblogic license

Reply
Add Your Reply

Not found