> I'm working through a book on jsp and java servlets. At the > moment I am using tomcat on my desktop to run the sample > applications but I have CF8 installed on my server so I want > to know if I'll be able to run servlets on there as well. > > I have got jsp to work no problem but getting the servlets to > work is a bit more complicated it seems. I'll also be wanting > to develop EJB applciations on there as well. > > Is this possible?
If you're using CF 8 Enterprise, Trial or Developer Edition, yes, CF will run JSPs and servlets for you using the underlying JRun engine, as Suzanne and Cameron have mentioned. However, there's no need to uninstall and reinstall CF for this, unless you want to completely separate your CF stuff from your other J2EE stuff. > The first problem is that there is no WEB-INF folder specific > to each site so I cannot add a web.xml and classes to each site. CF has a WEB-INF folder, which will be in c:\coldfusion8\wwwroot by default. If you're running CF using the default configuration, you only have one J2EE server instance, so you only get one WEB-INF folder no matter how many virtual servers (or "sites") you have in IIS. If you want more J2EE server instances, you'll need to do as Cameron described: uninstall and reinstall CF using the "multiserver" option if you haven't already. > The second problem is that I can't see how IIS will be able > to route submit.do (for example) to the J2EE server so that > it can decide which servlet processes that request. Don't worry too much about the mechanics of this. Once you configure your web server to talk to JRun (or any other J2EE web server for that matter), that J2EE server will examine every incoming request. Requests for static files will then be handled by the web server, and requests for J2EE resources will be handled by the J2EE server. It's not dependent upon file extensions. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Server/message.cfm/messageid:6615 Subscription: http://www.houseoffusion.com/groups/CF-Server/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.10
