File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply 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
[Thumb - Screenshot.png]
 Filename Screenshot.png [Disk] Download
 Description
 Filesize 170 Kbytes
 Downloaded:  12 time(s)

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: 3563

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: 12513

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.


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
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.
 
 
subject: I'm not able to Run my Tomcat6
 
Threads others viewed
How to Change default-port 8080 to above 8000
How can i add tomcat server to Eclipse Galileo
How to develope jax-ws web services using Tomcat 6?
Error with Eclipse Galileo+Tomcat plugin
Tomcat Issue
developer file tools