File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes How do you deploy a simple Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How do you deploy a simple ".war"?" Watch "How do you deploy a simple ".war"?" New topic
Author

How do you deploy a simple ".war"?

K Riaz
Ranch Hand

Joined: Jan 08, 2005
Posts: 375
As expected, I am finding Weblogic to be difficult to use compared to servlet containers such as Tomcat to deploy a simple web application (.war file). Does anyone know how to do the following:

1) Where to drop the .war file within Weblogic?
2) How to start the server so I can view the web application? What is the default port (e.g. 8080?).

Thank you.

Kashif.
[ May 15, 2005: Message edited by: Kashif Riaz ]
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
What version of weblogic are you asking about?

Lots of great documentation at http://e-docs.bea.com

Assuming you've downloaded a newer version, you need to run the configuration wizard to create a domain. If you create a basic weblogic server domain you get to choose "Express" or "Custom" creation. With custom you pick the port, with express it uses the default which is 7001 with the versions I've used. Not to worry, though, as the server prints out the port number when it starts up. ("listening on port 7001")

When you create the domain, if you look closely you'll see where it is going to create the domain. It'll be like "bea_home"/user_projects/domains/mydomain.

If on windows you can start from start - all programs, or find the start script in you domain directory.

Inside the domain directory there's an applications directory. That's where you can drop a web app, etc.
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
You can deploy via the console, but this is error-prone and not suitable for production anyway. Learn to use the WebLogic-supplied Ant scripts for building and deployment. I've been using the wldeploy Ant task for this.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
K Riaz
Ranch Hand

Joined: Jan 08, 2005
Posts: 375
I tried to start the admin server but it did not start as I have no licence. I got the Weblogic 8.1 CD from http://bea.freetodevelop.com/index.html but cannot find a place to get a licence. How can I get one?
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
I followed that link to the cd page and it said,

WebLogic Platform 8.1 with SP3
Download or order a free CD with BEA WebLogic Platform 8.1 - including your free WebLogic Workshop 8.1 developer license - here today.

Sounds like it should have a license. It's a 1 year developer license when you download.

Check your install directory for license.bea.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do you deploy a simple ".war"?
 
Similar Threads
configure tomcat with bea weblogic
IBM is cooL, Websphere Application Server is giving out Morse Code Exception
weblogic server
deploying war file on weblogic 9.2
Deploying web application in Weblogic 8.1 SP 5 version