Solved

How to run j2ee weblogic application more smoothly in eclipse

Posted on 2006-10-26
7
379 Views
Last Modified: 2013-11-24
Hi,

Here the "more smoothly" means:

Is it possible that when you change code in eclipse, it will automatically be compiled and deployed by weblogic server?

Currently if I changed any code, I need to use build.xml to build the whole application, that takes time. I am using wtp-eclipse. If you think it would work on bea's weblogic-eclipse built-in, I can try it too.

Thanks.
0
Comment
Question by:ly_uwo
  • 4
  • 3
7 Comments
 
LVL 3

Expert Comment

by:KnightFire
ID: 17813538
You should be able to find a plugin that allows you to start, stop and deploy to your WebLogic server from within the IDE. There is an eclpise plugin on dev2dev but I have not used it
https://eclipse-plugin.projects.dev2dev.bea.com/
According to that page it should allow you to fully manage and configure your weblogic instance from within eclipse.

In development it is very popular to use 'exploded' archives rather than compressed ones, as these do not need to be completely rebuilt while you are developing, so I would also look at deploying your application and its archives (ears, jars and wars) in exploded format.

KF
0
 

Author Comment

by:ly_uwo
ID: 17813654
Yes, I am still using .ear files to run. How can I just use 'exploded' archives.  
0
 
LVL 3

Expert Comment

by:KnightFire
ID: 17813861
See the docs here:
http://e-docs.bea.com/wls/docs81/deployment/overview.html
About half way down the page.
Essentially, exploded archives are just directories with the same names and structure as an ear file would have.

0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 3

Accepted Solution

by:
KnightFire earned 500 total points
ID: 17813915
Also, those instructions talk about starting with an ear and unpacking it to its exploded form.
You don't have to do that, all you have to do is end up with a directory structure that mirrors what the ear file structure would be.
For example (entries marked * are directories):

*my-app.ear
     |_APP-INF*
     |_META-INF*
     |_mywar.war
     |  |_WEB-INF*
     |  |  |_classes
     |  |      |_com....
     |  |_my_jsp.jsp
     |  |_myotherjsp.jsp
     |_myjar.jar
         |_META-INF
 
etc, so you end up with a directory structure that looks like the contents of an ear file, plus all the archives within the ear, all expanded out into a single structure

0
 

Author Comment

by:ly_uwo
ID: 17815304
So do you think I can do in this way:

Suppose originally I put my application: myapplication.ear in the folder of c:\bea\user_projects\domains\mydomain\applications\

Now I just extract the files out of the ear file, so that in the folder: c:\bea\user_projects\domains\mydomain\applications\

I have a directory named: myapplication.ear, and structure inside is exactly the same as ear file. I removed the ear file from this folder.

Then the project will still work exactly as before, right?
0
 
LVL 3

Expert Comment

by:KnightFire
ID: 17815509
Yes, it should work as before, and to re-deploy parts of the application, copy them in to the correct location in the directory and tell weblogic to redeploy the application.
0
 

Author Comment

by:ly_uwo
ID: 17815670
Thanks. I  have tried, it looks good.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question