Solved

How to run j2ee weblogic application more smoothly in eclipse

Posted on 2006-10-26
7
373 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Systems talking to each other 5 123
Python Assistance 7 70
servlet  URL Rewriting 1 24
map related example 6 24
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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…
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…

948 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