Solved

How to run j2ee weblogic application more smoothly in eclipse

Posted on 2006-10-26
7
370 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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 learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now