File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Depolyment on WAS 4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "Depolyment on WAS 4.0" Watch "Depolyment on WAS 4.0" New topic
Author

Depolyment on WAS 4.0

kkyim
Greenhorn

Joined: Jun 22, 2001
Posts: 20
Where should I put a single servlet or JSP in WAS instead of converting them into WAR or EAR?
Thanks
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1825
"kkyim"
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
About your query WAS 4.0 does not have a folder structure similar to that of Weblogic server and other server where you can drop the servlet, edit the web.xml file and vo it starts. You will need to create the ear file to test your servlet.. I know it is cumbersome. But I think the basic strategy is to use something like VAJ for writing your code and testing it out and using WAS 4.0 only in the deployment scenario
Thanks.
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3878
Originally posted by kkyim:
Where should I put a single servlet or JSP in WAS instead of converting them into WAR or EAR?
Thanks

The short answer is you can't, at least not in Websphere 4.0. WAR files are the only J2EE-compliant way to package JSP or servlet files.
Having said that, though, there IS a way that you can "sneak" a new Servlet or JSP into an existing web application (like, for example, the default server's example application) without having to put it inside the WAR. Read the section in the InfoCenter on "hot deployment" of servlets and JSP's and the section on the "EAR Expander" tool, and that should show you how it's done.
If you still have questions after that, leave a new message here.
Kyle

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
kkyim
Greenhorn

Joined: Jun 22, 2001
Posts: 20
Thank you for your advice!
I've another question about the AA tool.
I've created an EAR and installed in the WAS (using admin console). If I update the servlet and regenrated the EAR in the AA tool, how can I update the EAR in WAS? Should I re-install the EAR again?
Thanks
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3878
Yes, the accepted way to handle this is to delete and then reinstall the EAR file. However, the section on Hot Deployment mentioned above shows how you can avoid doing this for quick tests or deployments.
However, I think that for sanity's sake (and good SCM practices) that deleting and re-installing is probably your best bet.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
Rahul Mahindrakar
Ranch Hand

Joined: Jul 28, 2000
Posts: 1825
"kkyim"
Please reregister following the registration rules failing which I will be forced to block your account.
Thanks.

------------------

Mahindrakar
IBM/Websphere Forum Moderator

Consultant - Zensar Technologies ,Pune India.
SCJP2, SCJD2 & SCJEA (Part I)
Yogesh Gautam
Greenhorn

Joined: Dec 11, 2001
Posts: 4
Noway..... There is no way in WAS 4.0 to test your single servlet without creating a war/ear file. Your best bet will be VAJ. If you are using Visual Age for Java, you can test that in WAS Test envrionment, which comes with VAJ. Or you can download some other servlet engine ie. Tomcat's Jakarta. This is a freeware and very easy to configure for this kind of testings...
Regards,
Yogesh Gautam
WebSphere Architect
IBM Canada
yogesh_gautam@hotmail.com
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Originally posted by Yogesh Gautam:
Noway..... There is no way in WAS 4.0 to test your single servlet without creating a war/ear file. Your best bet will be VAJ. If you are using Visual Age for Java, you can test that in WAS Test envrionment, which comes with VAJ. Or you can download some other servlet engine ie. Tomcat's Jakarta. This is a freeware and very easy to configure for this kind of testings...

Well, if you did create an .ear once, you can copy each new servlet in the Web-INf/classes/... modify the web.xml accordingly, and then test the servlet.
Yogesh, WTE is not always (should I say never ?) a good solution because it is a WAS 3.5, not a WAS 4...


/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
 
 
subject: Depolyment on WAS 4.0
 
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture