"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.
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
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
posted 18 years ago
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.
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 email@example.com
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
I love a good mentalist. And so does this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!