Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deploy a web application in ORION

 
david, chen
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, there:
Could any one give me some idears about how can I deploy a web application in ORION server? In tomcat, I just copied my war file in /webapps. How can I do in Orion with the same war file? where should I put my war file, and what .xml file should I modify to deploy. Thanks a lot.
David
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by david, chen:
Could any one give me some idears about how can I deploy a web application in ORION server?

Either run "java -jar orion.jar -console" or double-click on "orionconsole.jar". Right-click on your server (ormi://localhost) and select "Install application". You'll also be able to access some handy tools from the Assemble menu to create EJBs, tag libraries, Web applications (.war), and enterprise applications (.ear). You can run these separately as well, they have their own .jars.
They may not be the slickest tools available, but they sure beat editing the .xml files.
- Peter

[This message has been edited by Peter den Haan (edited May 17, 2001).]
 
Mary Magdaline
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
-In the foll instructions I use anApp.war...substitute for yours
-Copy war file anApp.war to c:\orion\applications
(or wherever you have orion\applications dir)
-Modify application.xml and add this line:-
<web-module id="anApp" path="../applications/anApp.war " />
-Modify default-web-site.xml to include this line:-
<web-app application="default" name="anApp" root="/anApp" />
-If orion is not already started..start it.
-Invoke url http://localhost/anApp/servlet/SomeServletYouHave
or
http://localhost/anApp/SomeJsp.jsp
 
Michael Matola
whippersnapper
Ranch Hand
Posts: 1820
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ameelin,
Please adjust your displayed name to meet the JavaRanch Naming Policy. You can do so here.
 
Russ Gille
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by david, chen:
Hi, there:
Could any one give me some idears about how can I deploy a web application in ORION server? In tomcat, I just copied my war file in /webapps. How can I do in Orion with the same war file? where should I put my war file, and what .xml file should I modify to deploy. Thanks a lot.
David

Yo,
I think you want to goto http://www.orionserver.com/ and do a search for "auto deploy". 7, 7.1 and 7.2 of the result describe setting the "application-auto-deploy-directory" attribute of the "application-server" tag in the server.xml file... The attribute is not there by default. Anyway this will allow you to drop an ear file (which can contain a war file) and automatically configure the deployment. You'll see what I'm talking about.
L8
 
Pauline McNamara
Sheriff
Posts: 4012
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Matola:
ameelin,
Please adjust your displayed name to meet the JavaRanch Naming Policy. You can do so here.

Now known as Mary Magdaline? Looks like your new display name might fall into the "obviously ficticious" category. Please take a minute to change your display name again.
Thanks and hope you'll be visiting the ranch often.
Pauline
[ May 21, 2003: Message edited by: Pauline McNamara ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic