Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I'm not able to Run my Tomcat6

 
Arun Giridharan
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]
 
he yx
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>
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • 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 *
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic