Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to run j2ee weblogic application more smoothly in eclipse

Posted on 2006-10-26
7
Medium Priority
?
386 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 3

Accepted Solution

by:
KnightFire earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses

597 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