• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

tomcat deployment

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am looking for a way to deploy my web application in tomcat without using a war.
In fact, as I am doing lot of tests. it's really not convenient to (generate a war, deploy, changes, undeploy, generate a war deploy,,,)

So if you have a tip for me.
Thanks
 
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

karim tazibt wrote:In fact, as I am doing lot of tests. it's really not convenient to (generate a war, deploy, changes, undeploy, generate a war deploy,,,



The best solution would be to automate all these tasks. Take a look on Executing Manager Commands With Ant
 
Saloon Keeper
Posts: 28319
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have to use a WAR. Per the J2EE standard, webapps are WARs or EARs. And Tomcat doesn't do EARs.

However, you can save a little time by using an "exploded" WAR and referencing an in-project copy.

An exploded WAR is what you get when you unzip a WAR file. If you deploy using a docBase that's a directory instead of a ".war" file, Tomcat will assume that you're deploying an exploded WAR. If you define a context file in TOMCAT_HOME/conf/Catalina/localhost, the docBase for that context can reference a directory within your development project. Since most project development systems these days marshall all the webapp components into an exploded WAR directory before zipping them up to produce the .war file that allows you to skip a few steps.
 
karim tazibt
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:You have to use a WAR. Per the J2EE standard, webapps are WARs or EARs. And Tomcat doesn't do EARs.

However, you can save a little time by using an "exploded" WAR and referencing an in-project copy.

An exploded WAR is what you get when you unzip a WAR file. If you deploy using a docBase that's a directory instead of a ".war" file, Tomcat will assume that you're deploying an exploded WAR. If you define a context file in TOMCAT_HOME/conf/Catalina/localhost, the docBase for that context can reference a directory within your development project. Since most project development systems these days marshall all the webapp components into an exploded WAR directory before zipping them up to produce the .war file that allows you to skip a few steps.




It's what I am looking for, can you explain the step to deploy an exploded war

Thanks
 
Ranch Hand
Posts: 213
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are doing development and testing, this isn't an efficient way to work. I don't know what your development environment is, but using something like Eclipse with the Sysdeo plugin would be much more productive.
 
karim tazibt
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Richard Golebiowski wrote:If you are doing development and testing, this isn't an efficient way to work. I don't know what your development environment is, but using something like Eclipse with the Sysdeo plugin would be much more productive.


Hi,
I am developing some web applications under tomcat using Eclipse and Sysdeo, but don't know how to deploy it effenciently without generating a war each time I append something.
Acctually, I am using the interface of tomcat as following:
In eclipse, for each modification, creating a war,
In tomcat, undeployement, deployment,
and so one.

It could be brilliant if I can get arround this heavy procedure which consumes a lot of time
Thanks
 
Richard Golebiowski
Ranch Hand
Posts: 213
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then you definitely need to check out the Sysdeo plugin. It will save you a lot of time.
 
karim tazibt
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Richard Golebiowski wrote:Then you definitely need to check out the Sysdeo plugin. It will save you a lot of time.


Do you have any link or tuto about how to use sysdeo for web deployment because, in google; I havent found any thing explicit:
I am sure it"s not diffuclt to manage it; but so fare; I couldnt
Thanks for your help
 
Richard Golebiowski
Ranch Hand
Posts: 213
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should be able to find all the information you need here.
 
rubbery bacon. crispy tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic