• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

I'm not able to Run my Tomcat6

 
Ranch Hand
Posts: 290
Debian Fedora Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 28133
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Yeast devil! Back to the oven that baked you! And take this tiny ad too:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic