Solved

How to run j2ee weblogic application more smoothly in eclipse

Posted on 2006-10-26
7
384 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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:

728 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