permaculture playing cards*
The moose likes Websphere and the fly likes To Use the Test Server in RAD 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "To Use the Test Server in RAD 6.0" Watch "To Use the Test Server in RAD 6.0" New topic
Author

To Use the Test Server in RAD 6.0

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I am using WAS6 and RAD6. I have an instance in WAS6. And the instance (real server) is properly configured to deploy the build of my application that is developed using RAD6. I usually use the WAS6 Adminitration Console to deploy after each build.

Lately, I am working primarily in the web tier. Some modification of the code in Java classes do not have impact on many other Java classes. And all the code in the application tier is insulated from those modifications.

I am told that a test server is already created in RAD6.

1. Where is the test server in RAD.
2. Do I have to configure the RAD test server the way I configured the "real server" in WAS6? How do I configure this test server?
3. How do I add ears to this test server so that I do not have to go to the WAS6 Administration Console to deploy a new build each time some web tier code is modified?

Thank you for guidance in advance.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

Originally posted by JiaPei Jen:
I am using WAS6 and RAD6. I have an instance in WAS6. And the instance (real server) is properly configured to deploy the build of my application that is developed using RAD6. I usually use the WAS6 Adminitration Console to deploy after each build.

Lately, I am working primarily in the web tier. Some modification of the code in Java classes do not have impact on many other Java classes. And all the code in the application tier is insulated from those modifications.

I am told that a test server is already created in RAD6.

1. Where is the test server in RAD.
2. Do I have to configure the RAD test server the way I configured the "real server" in WAS6? How do I configure this test server?
3. How do I add ears to this test server so that I do not have to go to the WAS6 Administration Console to deploy a new build each time some web tier code is modified?

Thank you for guidance in advance.

1) The test server can be viewed from the ejb (or a few other) perspectives. Near the bottom of the screen is a server tab.
2) Yes. Start the test server, right click it and open the admin console. Then do the same thing you did on the real server.
3) Right click the server and choose add/remove application. Then add your ear. Most web tier changes take effect automatically. If you make a bigger change, like adding a servlet, you can right click the server and restart just that ear. This will pick up the change.

Note that in WSAD 5, the tool supplied a limitted test server. In RAD 6, you are getting a real WAS instance with full capabilities.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Thanks for the instructions. I am going to try it out accordingly.
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Hi, it is me again.

I followed your instructions for setttin up the test server in RAD 6.0; but, I think that I am missing something.

1. I went to the J2EE view and found the "servers" tab. I right clicked on the WebSphere Application Server v6.0 and selected the "Start".
2. After the server started, I brought up the Administration Console in IE. I typed http://localhost:9060/IBM/console because 9060 seemed to be the only port that worked for me to bring up the Administration Console.
3. I used the Administration Console to configure the RAD test server the same way as I configured my real WAS server.
4. I used the Adminstration Console to install my application *.ear files; therefore, my build was deployed. Then, I started all those deployed *.ear files.
5. I brought up another IE and displayed my application. My application was displayed and navigated without any problem.

Thereafter, I started making some changes to my JSP files in RAD 6.0. I saved those files in RAD 6.0 after modifications were made. But, the changes that I made to those JSP files were not reflected in the IE browser (Note that I did clicked on the IE "refresh" button.)

I checked the "Server Overview" in RAD 6.0. I had:

1. SOAP (MOre firewall compatible) radio button is checked
The SOAP connector port was 8880 (I did not make any change to it.)
2. Enable hot method replace in debug mode checkbox is checked
3. Enable universal test client checkbox is checked
4. Run server with resources within the workspace radio button is checked
5. Enable automatic publishing checkbox is checked
6. The Server name under the Network Deployment is set correctly
7. Base, Express or unmanaged Network Deployment server (under the Server type) radio button is checked.

What I am worried is that I right clicked on the WebSphere Application Server v6.0 in RAD and selected Add and remove projects ..., I got There are no projects that can be added or removed from the server. It leads me to think that I missed certain steps.

Why my changes to the JSP files do not get reflected in the IE browser automatically? I checked the IE --> Tools --> Internet Options --> General. The Settings under the Temporary Internet files is Automatically. I mean the Automatically radio button is checked.
[ May 22, 2006: Message edited by: JiaPei Jen ]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

JiaPei,
4. I used the Adminstration Console to install my application *.ear files; therefore, my build was deployed. Then, I started all those deployed *.ear files.

This is the step that is causing you a problem. While you can install an ear through the admin console like you do on the real server, then the IDE doesn't know about them. Instead, you can simply deploy the ear by using the add/remove projects list.

You can get back to this point by uninstalling your ear from the admin console and then adding it through the IDE. That way the IDE knows about the ear. It will link your ear in RAD to the ear deployed which causes the JSP changes to take effect.
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Hi, thanks for helping me.

I uninstalled all my *.ear from the Adminitration Console. I then tried to install my *.ear from RAD 6.0.

I supposed that I should click on the Servers tab in the J2EE Perspective. And right mouse click of the WebSphere Application Server v6.0., which I have configure the same way I configured WAS 6.0.

I first selected the Start from the menu to start the server.

When the server is on the Started status, I right mouse clicked on the WebSphere Application Server v6.0 again and selected "Add and remove projects ..." from the menu. I got "There are no projects that can be added or removed from the server" dialog.

How do I install all my *.ear in RAD6.0?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

JiaPei,
What you are doing is correct. RAD gets the list of applications from the EARs it knows about. Try going to the J2EE perspective. On the left hand side, expand the "enterprise applications" entry and make sure your ear is there.
Soumya Saha
Ranch Hand

Joined: Apr 14, 2006
Posts: 64
Hi,
I don't want to deploy the application with .ear file evrytime..on RAD 6.0

How can I do it with the test server if there is any on RAD 6.0?

Any ideas will be highly appreciated..

Thanks
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I must bother you again.

1. I uninstalled all my *.ear in the RAD WebSphere Application Server

2. Add *.ear in RAD -- I found the Enterprise Applications in the RAD J2EE perspective. Only MyApplicationear folder automatically appeared there. Because what I needed to get my application running are MyApplicationejb.ear and MyApplicationweb.ear, I right clicked on the Enterprise Applications, selected 'Import ...', and then selected 'EAR file'. I simply gave a new project name to each of the *.ear files that I imported and took the defaults for all those textfields and checkboxes while importing.

3. Then, I right clicked on the WebSphere Application Server v6.0 under the RAD Servers tab, selected 'Add and remove project' from the menu. I moved all those imported *.ear (from step 2 above) from the "Available projects:" to the "Configured projects:"

4. I restarted the the WebSphere Application Server v6.0 in RAD.

5. I was able to display my application in the IE browser. Therefore, I suppose that all my *.ear files are properly deployed on the RAD WebSphere Application Server v6.0, which is the only server running in my machine.

But, my changes to my JSPs do not get reflected in the browser by clicking on the browser Refresh button. I simply added "Hello World !!!" to my JSP. I clicked on the browser Refresh button, I did not see my "Hello World !!!".

I must have done something wrong. What did I miss or overlook? Thanks for your value advices.
[ May 25, 2006: Message edited by: JiaPei Jen ]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

JiaPei,
You did everything correctly. As you noted, step 5 shows that it recognizes the ear.

What directory are the JSPs in? Are they in the workspace and in a web project?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

Originally posted by Soumya Saha:
Hi,
I don't want to deploy the application with .ear file evrytime..on RAD 6.0

How can I do it with the test server if there is any on RAD 6.0?

Any ideas will be highly appreciated..

Thanks

RAD 6 doesn't come with a test server. It comes with a built in regular WebSphere server. What's the problem with deploying it every time? RAD does it automatically and it is very fast.
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Jeanne, thanks for your continuing support.

To answer your question, the JSP file to which I added "HELLO WORLD !!!" for testing purpose is in the RAD workspace and in the web project as well.

I "think" that I have found the problem. In the RAD J2EE perspective, if I right click on the Enterprise Applications and select "New" and select "Enterprise Application Project" to add my build, things seem to work. I mean that I am able to see the changes made to JSP files by simply clicking on the browser's Refresh button.

However, if I right click on the Enterprise Applications and select "Import ..." from the menu, things do not seem to work. I mean that changes made to JSP files do not get reflected automatically. I must have screwed up something when I took the "Import ...." route. I wonder what mistake that I made.

Another question is that if the "application tier" changes also take effect automatically? What should I do if the changes do not get reflected automatically? Rebuild and re-deploy?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

JiaPei,
Interesting. I wonder if import is supposed to work differently. My guess is not, so it is either configuration or a bug in RAD.

Some changes get picked up automatically (like those in the web layer.) Others require a restart. You can just restart that ear instead of the whole server which is very fast.
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309

originally posted by Jeanne Boyarske:

If you make a bigger change, like adding a servlet, you can right click the server and restart just that ear.

I am somewhat confused here.

If I right click on the RAD WebSphere Application Server v6.0, I can either "Add and remove projects ..." or "Run administrative console". I am unable to re-start a particular ear.

Unless you mean that I should uninstall and then intall that ear in the Administrative Console?
manisha Gupta Garg
Ranch Hand

Joined: Jul 03, 2009
Posts: 41
Hi,

I am trying to run application called "Survey" with context "/survey" in RAD 7.0 with WAS 6.0. But its giving me HTTP 404 page not found error.

Please help !

Thanks,
Manisha
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: To Use the Test Server in RAD 6.0
 
Similar Threads
RAD6 :- Web Project referencing utility project
WAS6 Server launched but failed to initialize
Configure RAD to Avoid Re-Build and Re-Deploy
Websphere 6.0 Rapid Deployment
Remote debugging WAS 6 and RAD 6