RV: WAR Files

2000-07-17 Thread David Sierra Fernández



You can have a look at orion doc, "Application creation how-to" and get
help with web-application.xml. This is a bit "thin" of explanations.

If ya wanna have a better explanation, read the atachment. This is a doc
from weblogic.

I don't know if I can send this kind of atachments to Orion list so if
anyone else want it , please tell me.

Bye

-
David Sierra Fern ndez
E.T.S.I. Telecomunicaci¢n
Universidad de ValladolidAULA CEDETEL
Campus Miguel Delibes   E-Mail: [EMAIL PROTECTED]
47011 Valladolid (SPAIN)
--

 -- Sierr@ --

On Thu, 13 Jul 2000, Robert Keith (UK) wrote:

 Hi guys,

 Does anyone know of a decent site that details what should be described in
 the web.xml file, I can't find anything on Sun's site that is of any use,
 and how to go about creating a WAR file.

 cheers

 Bob









Re: Creation Of WAR Files?

2000-07-14 Thread Chris Miller

In relation to this - up until now I have been using ant to build/deploy my
EAR file. Works fine, but slow. So I've tried to get Orion working live
against my source code.

A couple of questions:
How do EJB's fit into all of this? At the moment, I'd actually prefer to
keep them in the EAR file, but I'd like to know what the options are. How
does the web-app link to the EJB's?

I have a directory structure identical to the WAR file I'm deploying, except
with .java files instead of .class files, so it's just a matter of pointing
to that, right? Problem is, this is on a different drive (network) - how do
I get Orion to work from there? In my default-web-app.xml I'm not sure what
to put for 'root' (or 'name' or 'application' for that matter!). Something
like:

web-app application="myapp" name="myapp-web" root="file://p:/myapp/war/" /
web-app application="myapp" name="myapp-web" root="p:/myapp/war/" /

Doesn't work?



- Original Message -
From: "Kevin Duffey" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Friday, July 14, 2000 2:35 AM
Subject: RE: Creation Of WAR Files?


 I believe Orion has a GUI tool that creates a WAR for you, but that is
 beyond me. When I am developing, I don't WAR up the dir. I keep it
expanded.
 You point to the WAR directory structure in default-web-site.xml in the
 /config folder. Just read up on that and you should be set to have a WAR
 file for development. Then you can JAR up the dir:

 jar cvf myfile.war root-dir

 That should jar up your entire www structure, including the WEB-INF folder
 which has
 /classes  - the compiled code of your app
 /lib   - the .jar and .zip libraries loaded for you by Orion (as per the
 servlet 2.2 spec)
 web.xml - the descriptor that explain to Orion how to run.

 Anything in /classes automatically becomes part of the classpath, that is
 part of the servlet 2.2 spec and should work on any servlet 2.2 container.
 Anything in the /lib folder should be loaded by the application server
 automatically and become part of the classpath as well. We put jdbc.zip
(for
 Oracle 8i) there, along with activation.jar, mail.jar, jasp.jar, and other
 .jar files we need. At runtime they are automatically seen by your app (in
 the import statements of your classes). Nothing special to do.

 Orion has a very kewl feature that allows you, during development, to
point
 to a "source" directory that matches the package structure output of your
 compiled classes. It then checks the source dir for changes (time-date)
 compared to the .class file it was compiled in to. If there is a change,
it
 recompiles and reloads the web-app for you. This allows you not to have to
 shut down and restart orion every time you make a code change. Most app
 servers support this for classes in the /servlets dir, and generally that
is
 javabeans and servlets. Orion (and Resin does this too) will reload the
web
 app if any classes changed. The only downside is that it can take a few
 seconds for it to check the files. I believe its faster than restarting
 though.






Re: WAR Files: ME TOO

2000-07-14 Thread Karl Avedal

Hello,

You can either look at the "How do I create and deploy a J2EE application?"
entry in the FAQ (it provides two links that explains both .ear and .war
step-by-step).

Or you can get a book on the subject, there are now many JSP and Servlet books
(make sure you get one that covers Servlet 2.2 or JSP 1.1 though).

Or you can check out the web application chapter of the Servlet specification,
it's a well written specification.

Or you can try to find it in the Servlet/JSP documentation on the Sun Java site.

Or you can create a new war (or a few of them) using the webappassembler.jar and
see how its structure looks if you like leaning by example. You can also study
the examples that are shipped with Orion

Regards,
Karl Avedal

Steven Punte wrote:

 ME TOO:

 I'm looking for the "idiot guide to building war files"

 STeve Punte
 e-Business Software Architect
 Technologent Inc
 [EMAIL PROTECTED]

 - Original Message -
 From: Robert Keith (UK) [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Thursday, July 13, 2000 2:13 AM
 Subject: WAR Files

  Hi guys,
 
  Does anyone know of a decent site that details what should be described in
  the web.xml file, I can't find anything on Sun's site that is of any use,
  and how to go about creating a WAR file.
 
  cheers
 
  Bob





WAR Files

2000-07-13 Thread Robert Keith (UK)

Hi guys,

Does anyone know of a decent site that details what should be described in
the web.xml file, I can't find anything on Sun's site that is of any use,
and how to go about creating a WAR file.

cheers

Bob




Re: WAR Files: ME TOO

2000-07-13 Thread Steven Punte

ME TOO:

I'm looking for the "idiot guide to building war files"

STeve Punte
e-Business Software Architect
Technologent Inc
[EMAIL PROTECTED]


- Original Message -
From: Robert Keith (UK) [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, July 13, 2000 2:13 AM
Subject: WAR Files


 Hi guys,

 Does anyone know of a decent site that details what should be described in
 the web.xml file, I can't find anything on Sun's site that is of any use,
 and how to go about creating a WAR file.

 cheers

 Bob





RE: Creation Of WAR Files?

2000-07-13 Thread Kevin Duffey

I believe Orion has a GUI tool that creates a WAR for you, but that is
beyond me. When I am developing, I don't WAR up the dir. I keep it expanded.
You point to the WAR directory structure in default-web-site.xml in the
/config folder. Just read up on that and you should be set to have a WAR
file for development. Then you can JAR up the dir:

jar cvf myfile.war root-dir

That should jar up your entire www structure, including the WEB-INF folder
which has
/classes  - the compiled code of your app
/lib   - the .jar and .zip libraries loaded for you by Orion (as per the
servlet 2.2 spec)
web.xml - the descriptor that explain to Orion how to run.

Anything in /classes automatically becomes part of the classpath, that is
part of the servlet 2.2 spec and should work on any servlet 2.2 container.
Anything in the /lib folder should be loaded by the application server
automatically and become part of the classpath as well. We put jdbc.zip (for
Oracle 8i) there, along with activation.jar, mail.jar, jasp.jar, and other
.jar files we need. At runtime they are automatically seen by your app (in
the import statements of your classes). Nothing special to do.

Orion has a very kewl feature that allows you, during development, to point
to a "source" directory that matches the package structure output of your
compiled classes. It then checks the source dir for changes (time-date)
compared to the .class file it was compiled in to. If there is a change, it
recompiles and reloads the web-app for you. This allows you not to have to
shut down and restart orion every time you make a code change. Most app
servers support this for classes in the /servlets dir, and generally that is
javabeans and servlets. Orion (and Resin does this too) will reload the web
app if any classes changed. The only downside is that it can take a few
seconds for it to check the files. I believe its faster than restarting
though.

 Dear Orion-Interest Group:

 Can I simply create a war file by:

 1)Properly creating an WEB-INF directory.
 2)Properly creating a WEB-INF/web.xml file.
 3)Properly supplying WEB-INF/classes/*.class files.
 4)Executing "jar cvf  myNewWarFile.war WEB-INF"


 And I figure out all the more powerful graphics tools a
 bit later once I get the basic concepts down.

 STeve Punte
 e-Business Software Architect
 Technologent Inc
 [EMAIL PROTECTED]
 - Original Message -
 From: Mike Cannon-Brookes [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Thursday, July 13, 2000 4:50 PM
 Subject: RE: WAR Files: ME TOO


  A WAR file is just a jar that has one special directory
 /WEB-INF that has
 to
  contain a web.xml file. As long as your web.xml file validates according
 to
  the DTD, it's a valid WAR. Basically you can has as much or as little in
 the
  web.xml file as you want. (see
 http://www.orionserver.com/docs/web.xml.html
  for more details on what can go in the web.xml file)
 
  That's really all there is too it.
 
  Mike
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Steven Punte
  Sent: Friday, July 14, 2000 8:12 AM
  To: Orion-Interest
  Subject: Re: WAR Files: ME TOO
 
 
  ME TOO:
 
  I'm looking for the "idiot guide to building war files"
 
  STeve Punte
  e-Business Software Architect
  Technologent Inc
  [EMAIL PROTECTED]
 
 
  - Original Message -
  From: Robert Keith (UK) [EMAIL PROTECTED]
  To: Orion-Interest [EMAIL PROTECTED]
  Sent: Thursday, July 13, 2000 2:13 AM
  Subject: WAR Files
 
 
   Hi guys,
  
   Does anyone know of a decent site that details what should be
 described
 in
   the web.xml file, I can't find anything on Sun's site that is of any
 use,
   and how to go about creating a WAR file.
  
   cheers
  
   Bob
 
 
 







Fw: Creation Of WAR Files?

2000-07-13 Thread Steven Punte



 Kevin:

 Thanks for the reply.

 My interest in a WAR file is for placing an application
 in a production environment.  It's very nice to simply
 ship it over, and keep track of it, as a single file.

 Thanks for you description below.  It helps.

 Would/should JSP files also be located in the
 WEB-INF directory, or is it ok for them to
 be in a sibling directory that is also jar-ed
 up into the war file?

 Sincerely:

 STeve Punte
 e-Business Software Architect
 Technologent Inc
 [EMAIL PROTECTED]
 - Original Message -
 From: Kevin Duffey [EMAIL PROTECTED]
 To: Steven Punte [EMAIL PROTECTED]; Orion-Interest
 [EMAIL PROTECTED]
 Sent: Thursday, July 13, 2000 6:35 PM
 Subject: RE: Creation Of WAR Files?


  I believe Orion has a GUI tool that creates a WAR for you, but that is
  beyond me. When I am developing, I don't WAR up the dir. I keep it
 expanded.
  You point to the WAR directory structure in default-web-site.xml in the
  /config folder. Just read up on that and you should be set to have a WAR
  file for development. Then you can JAR up the dir:
 
  jar cvf myfile.war root-dir
 
  That should jar up your entire www structure, including the WEB-INF
folder
  which has
  /classes  - the compiled code of your app
  /lib   - the .jar and .zip libraries loaded for you by Orion (as per the
  servlet 2.2 spec)
  web.xml - the descriptor that explain to Orion how to run.
 
  Anything in /classes automatically becomes part of the classpath, that
is
  part of the servlet 2.2 spec and should work on any servlet 2.2
container.
  Anything in the /lib folder should be loaded by the application server
  automatically and become part of the classpath as well. We put jdbc.zip
 (for
  Oracle 8i) there, along with activation.jar, mail.jar, jasp.jar, and
other
  .jar files we need. At runtime they are automatically seen by your app
(in
  the import statements of your classes). Nothing special to do.
 
  Orion has a very kewl feature that allows you, during development, to
 point
  to a "source" directory that matches the package structure output of
your
  compiled classes. It then checks the source dir for changes (time-date)
  compared to the .class file it was compiled in to. If there is a change,
 it
  recompiles and reloads the web-app for you. This allows you not to have
to
  shut down and restart orion every time you make a code change. Most app
  servers support this for classes in the /servlets dir, and generally
that
 is
  javabeans and servlets. Orion (and Resin does this too) will reload the
 web
  app if any classes changed. The only downside is that it can take a few
  seconds for it to check the files. I believe its faster than restarting
  though.
 
   Dear Orion-Interest Group:
  
   Can I simply create a war file by:
  
   1)Properly creating an WEB-INF directory.
   2)Properly creating a WEB-INF/web.xml file.
   3)Properly supplying WEB-INF/classes/*.class files.
   4)Executing "jar cvf  myNewWarFile.war WEB-INF"
  
  
   And I figure out all the more powerful graphics tools a
   bit later once I get the basic concepts down.
  
   STeve Punte
   e-Business Software Architect
   Technologent Inc
   [EMAIL PROTECTED]
   - Original Message -
   From: Mike Cannon-Brookes [EMAIL PROTECTED]
   To: Orion-Interest [EMAIL PROTECTED]
   Sent: Thursday, July 13, 2000 4:50 PM
   Subject: RE: WAR Files: ME TOO
  
  
A WAR file is just a jar that has one special directory
   /WEB-INF that has
   to
contain a web.xml file. As long as your web.xml file validates
 according
   to
the DTD, it's a valid WAR. Basically you can has as much or as
little
 in
   the
web.xml file as you want. (see
   http://www.orionserver.com/docs/web.xml.html
for more details on what can go in the web.xml file)
   
That's really all there is too it.
   
Mike
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Steven
Punte
Sent: Friday, July 14, 2000 8:12 AM
To: Orion-Interest
    Subject: Re: WAR Files: ME TOO
   
   
ME TOO:
   
I'm looking for the "idiot guide to building war files"
   
STeve Punte
e-Business Software Architect
Technologent Inc
[EMAIL PROTECTED]
   
   
- Original Message -
From: Robert Keith (UK) [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, July 13, 2000 2:13 AM
Subject: WAR Files
   
   
 Hi guys,

 Does anyone know of a decent site that details what should be
   described
   in
 the web.xml file, I can't find anything on Sun's site that is of
any
   use,
 and how to go about creating a WAR file.

 cheers

 Bob
   
   
   
  
  






Easy deployment of .war files?

2000-06-12 Thread Shields, Dorwin T.

Hi,
  I've been using tomcat and recently began using
orion.  I was wondering if there was an easy way to
deploy war files (read w/o creating an .ear file)?  There
are a lot of projects on the web that simply exist
as .war files.

Thanks,

Dorwin




Re: Easy deployment of .war files?

2000-06-12 Thread David Sierra Fernandez


YEs Dorwin, it's very easy. If you hace a complete  application in a .war
file, you only have to follow the steps in "Hot-to setting up an
Application" in Orion docs, that implies to write a couple of lines in two
property files.

But the most important thing is that you have to bear in mind that in
those war files that you find in Internet, there shouldn't be any
property particular for any other server that orion.

In your war files there only cuold be standard properties and orion
proerties. You can read "web-application.xml" and
orion-web-application.xml" in orion docs.

The same to move the war files in Orion to other servers, you have to
eliminate the specific properties in order to make the war work in other
server.


-
David Sierra Fern ndez
E.T.S.I. Telecomunicaci¢n
Universidad de ValladolidAULA CEDETEL
Campus Miguel Delibes   E-Mail: [EMAIL PROTECTED]
47011 Valladolid (SPAIN)
--

 -- Sierr@ --

On Mon, 12 Jun 2000, Shields, Dorwin T. wrote:

 Hi,
   I've been using tomcat and recently began using
 orion.  I was wondering if there was an easy way to
 deploy war files (read w/o creating an .ear file)?  There
 are a lot of projects on the web that simply exist
 as .war files.
 
 Thanks,
 
 Dorwin
 
 





Re: Support of WAR files.

2000-01-21 Thread Joe Walnes


Does anyone know if or when OrionServer will support .war files?

Orion currently supports .war files and the latest version supports .ear 
files as well (the first server I've seen that does).

-Joe Walnes




Support of WAR files.

2000-01-20 Thread Abraham Kang

Does anyone know if or when OrionServer will support .war files?

Thanks,
Abraham