Celeste and Zafif raise a good point. Why is it so hard to create a new blank web application on a JRun 4 server?
I should add, though, hat you don't *have to* create a new server just to have a new application, as you seem to have asserted Celeste. Gosh, if anyone's operated under that assumption, what a shame. :-( The "Getting Started with JRun" book, Chapter 6 on "Developing Web Applications" (http://livedocs.macromedia.com/jrun4docs/Getting_Started_with_JRun/develapp s.jsp) talks about how to deploy an application onto an existing server. You certainly can have multiple apps on a single server. Admittedly, though, that's focused more on how to package and application for deployment onto such a server. You're right that it's strange that there's no "create application" link in the JMC to create a new blank application. Can anyone from MM speak to that? One possible workaround (a slight variant from your steps, Celeste, that don't involve an IDE) is to use the directory \JRun4\servers\samples\default-ear as a basis for creating a new one. - create a copy of that sample directory (assuming it's not been edited since installation of JRun) - rename the copied directory, as well as the default-ejb and default-war directory names under it, to a name you'd like for the app (like test-ear, test-ejb, and test-war, respectively) - edit the newly renamed directory's web.xml file in the default-war\WEB-INF directory (or now test-war\WEB-INF) to give it a more accurate value in the <display-name> element (otherwise it will show "JRun Default Web Application" when viewed in the JMC) - delete the databasenotes.html and index.html files and replace them with your own files (html, jsp, etc.) Then copy that newly renamed directory to \JRun4\servers\default. JRun will automatically deploy it on the default server. Still, it's a process that certainly could be automated. /charlie > -----Original Message----- > From: Haseltine, Celeste [mailto:CHaseltine@;magticket.com] > Sent: Thursday, October 17, 2002 6:15 PM > To: JRun-Talk > Subject: RE: jrun4 newbie q > > > Zafif, > > It is my understanding that you cannot. In theory, your suppose > to create a > new Server, and develop your application under that new server, instead of > creating a new web application under the Default server, as you > probably did > under JRUN 3.1. That creates problems if your a shop like us that has > several applications under development at once, and prefer to have the > applications residing on a central test server with only one instance of > JRUN running(in this case, the default server). > > This is what I did when we decided to try out JRUN 4.0 and see > what would be > involved in porting over to 4.0. Unfortunately, our budget is such that I > will be unable to purchase JRUN 4.0 anytime in the near future. > > I created a new Server to reside under InetPub, and configured the new > server to work with IIS 5.0. I then create a new web application called > OriginalNYDev in my IDE Eclipse 2.0.1. My IDE has a plugin that > creates the > subdirectory structure for me (WEB-INF, WEB-INF/jsp, WEB-INF/classes, etc) > AND a blank web.xml file. It is important to have a blank web.xml file and > the WEB-INF subdirectory structure in place BEFORE you attempt to create a > new application in JRUN 4.0. > > Then, go into your JRUN management console, and go to the Deploy Web > Application. On the Source File Path, browse to the name of the new web > application you just created at the top level (ie, OriginalNYDev) and hit > deploy. You don't need a war file, or the .war extension, the > blank web.xml > file and the existing subdirectory structure gets recognized by JRUN 4.0, > and it will move you to the next page, the Web Application Overview. The > web application name should be OriginalNYDev, and the web application root > directory will be what you selected in the source file path. > Make sure that > you DO NOT attempt to modify the parameters the first time you create the > application, or it may not "take". Just accept the default > parameters. Hit > apply. You will probably get an error message, but just ignore it. Then > return to the J2EE components on default, and you will have a new web > application called in place. You can then go back in and modify > any of the > parameters. > > Again, the trick to this is making sure that you have the subdirectory > structure in place AND a blank web.xml file in place before you do this. > JRUN 3.1 created a blank web.xml file, and the subdirectory structure for > you when you created a new web application. JRUN 4.0 does NOT do this, so > you will either need to do this by hand, or use an IDE that creates a new > web application, and the resulting blank web.xml file and subdirectory > structure for you. > > The other option is to create your own war file, such as "newProject.war" > file, and deploy it every time you need to create a new web application. > Since we are now using Eclipse 2.0.1 instead of JRUN Studio as our IDE, I > prefer to use the plugins to create a new web application on our test > server, and then configure it as I described above. > > Hope this info helps. > > Celeste Haseltine, PE > MTL, Inc > > > > > > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:Zafif@;worldbank.org] > Sent: Thursday, October 17, 2002 12:47 PM > To: JRun-Talk > Subject: jrun4 newbie q > > > We just loaded jrun 4 to a new test server. Now we have 1 jrun 4 test > server > and one jrun3.1. > > We were trying to CREATE a new web application on jrun 4. But the only > options > we had was to deploy an app. Am I missing some information or a > step? How > can > I create a new app the same way we create them in jrun 3.1? > > Thanks in advance! > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=8 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
