• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

I'm not able to Run my Tomcat6

 
Ranch Hand
Posts: 290
Debian Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm using ubuntu 10 , i not able to run my tomcat6 .

/usr/share/tomcat6/bin



What is the Problem
Screenshot.png
[Thumbnail for Screenshot.png]
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
make sure server.xml is in your $TOMCAT_HOME/conf
use startup.sh to start your tomcat
 
Arun Giridharan
Ranch Hand
Posts: 290
Debian Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The main cause of my problem was i didn't set my manager role .

Now how to generate .war file and deploy . ???




 
he yx
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
open $TOMCAT_HOME/conf/tomcat-users.xml and set :
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="admin,manager"/>
</tomcat-users>
 
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The main cause of my problem was i didn't set my manager role .


To start/stop the server locally you don't have to set the Manager role as you can directly run the appropriate scripts.

...Now how to generate .war file and deploy . ???


If you are familiar with Ant you can use the WAR Task to generate the WAR file and then just drop that in to the webapps directory of the Tomcat installation.

 
Arun Giridharan
Ranch Hand
Posts: 290
Debian Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't know how to generate .war file (days back when i was using eclipse simple Ant-build is used to generate .war file and deploy ) , i don't know how to do without eclipse and Ant-build or Maven, can you tell how to do it,what is the command to do .


i tried jar cvf /home/jayakannan/Desktop/beerV1.war *

 
Saloon Keeper
Posts: 22799
153
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Long, long ago when mammals were still scurrying under the feet of the dinosaurs, I used to use DOS batch command files to build WARs. But then Ant and Maven came out and I gave that up. The task of assembling a WAR is just more complicated than it's worth doing batch scripts for, much less typing in commands straight from the command line.

Yes, you can build a WAR using the JAR command. In fact, you can even use the ZIP command, but that just means more work you have to do yourself that something else could do for you. So I do recommend Ant or Maven.

Still, what you're doing is theoretically correct. It will work as long as the working directory you're in is structured like a WAR must be structured.
 
Arun Giridharan
Ranch Hand
Posts: 290
Debian Fedora Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Holloway wrote:Long, long ago when mammals were still scurrying under the feet of the dinosaurs, I used to use DOS batch command files to build WARs. But then Ant and Maven came out and I gave that up.



Wow, that's nice.
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic