aspose file tools*
The moose likes Linux / UNIX and the fly likes I'm not able to Run my Tomcat6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "I Watch "I New topic
Author

I'm not able to Run my Tomcat6

Arun Giridharan
Ranch Hand

Joined: Sep 30, 2010
Posts: 290

i'm using ubuntu 10 , i not able to run my tomcat6 .
/usr/share/tomcat6/bin


What is the Problem


[Thumbnail for Screenshot.png]

he yx
Greenhorn

Joined: Apr 10, 2011
Posts: 6
make sure server.xml is in your $TOMCAT_HOME/conf
use startup.sh to start your tomcat
Arun Giridharan
Ranch Hand

Joined: Sep 30, 2010
Posts: 290

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

Joined: Apr 10, 2011
Posts: 6
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

Joined: Mar 24, 2008
Posts: 3832

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.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Arun Giridharan
Ranch Hand

Joined: Sep 30, 2010
Posts: 290

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

Joined: Jun 25, 2001
Posts: 16068
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Arun Giridharan
Ranch Hand

Joined: Sep 30, 2010
Posts: 290

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.
 
Don't get me started about those stupid light bulbs.
 
subject: I'm not able to Run my Tomcat6