aspose file tools*
The moose likes JSP and the fly likes deploying .war in web Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "deploying .war in web" Watch "deploying .war in web" New topic
Author

deploying .war in web

Murasoli Maran
Ranch Hand

Joined: Jun 08, 2003
Posts: 193
Hi all,
can anybody tell me how to deploy a .war file(containes JSP and XML) in the web?.i am using mySQL as the database. and database script is not included in .war file.
which properties i have to change?.in both database and JSP(example river info)?.
anyone experienced please tell me the practical conciderations should be made for deploying web application( esp: war).
thanks in advance.
Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
it depends on the server setup but in tomcat you can put the .war file in to /tomcat/webapps and restart tomcat and it will extract it. you might also be able to put it in your domain context if you already have one and it will be extracted there.
to configure it you needto read the INSTALL file for the scripts you have downloaded. there might be a .conf file inside /WEB-INF, but we can't know


Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
Murasoli Maran
Ranch Hand

Joined: Jun 08, 2003
Posts: 193
i mean,
i have an mySQL database script.
i have a .war file
how to deploy?.first i have to execute mySQL script and then upload war file to WEB-INF directory?.if so,what is the best way to execute SQL script?.
may i have to change the Driver settings to connecting the web databse server?.i think i have to change it according to hosting database server settings.
what else i have to concider?.anyone experienced plz help.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
i have an mySQL database script. ... what is the best way to execute SQL script?.
An easy way is to log on to the server using telnet or ssh, run the MySQL interactive shell by typing "mysql", and then just "paste" your script into the terminal emulator. That should run it. Or you can upload the script to somewhere on the server, log in as above and type "mysql < name_of_script"
i have a .war file ... then upload war file to WEB-INF directory?
Several people have given advice on this, above. We can't give any more details without knowing (a) which servlet container you are using, (b) how it is configured, (c) what (if any) user-modifyable settings there are in your war file.
Note in particular, that you have to be accurate with file and directory names. No one suggested uploading a war file to "WEB-INF", look again at the messages above.
may i have to change the Driver settings to connecting the web databse server?.i think i have to change it according to hosting database server settings.
Probably. The first place I'd look is the installation instructions for the web application. I can't believe there aren't any at all. We can't really help you with any detailled answers, because there are almost as many ways of configuring a database connection as there are programmers.
Look in your war file for text files with configuration details. Look wherever you got it from for instructions and documents.
Finally, it's always wise to understand that you will get much better answers from JavaRanch if you give us (a) all the detailled information you have and (b) enough time to answer. Most visitors to JavaRanch drop in once a day at most, and expecting a reply within a few hours is foolish.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
on the subject of running a sql script. to log in to mysql through ssh you have to use
mysql -u myusername -p
or something like that, iirc it doesn't have interactive u/p entering
you may also ask your webhost if they have phpmyadmin or something similar which would make it easier, so you can paste it into a textbox or something
Murasoli Maran
Ranch Hand

Joined: Jun 08, 2003
Posts: 193
Originally posted by Frank Carver:

Several people have given advice on this, above. We can't give any more details without knowing (a) which servlet container you are using, (b) how it is configured, (c) what (if any) user-modifyable settings there are in your war file.
Note in particular, that you have to be accurate with file and directory names. No one suggested uploading a war file to "WEB-INF", look again at the messages above.

thanks for ur reply Frank.my server is Tomcat 4.1.but when it's using in localhost,the war file is saved on webapps(sorry i mean webapps instead of WEB-INF...a bad miss!)
may anybody suggest a good free subdomain(mydomain.advertisement.extention) naming service with DNS changing fecility?.
Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
you mean like http://www.no-ip.com/ ?
Alexis Sumalpong
Greenhorn

Joined: Jan 06, 2004
Posts: 13
Try using "Likha DevCentre". It makes it simple to do that. Download from
[link that starts a download without user intervention elided]
----------------------------------------------------------
Originally posted by Murasoli Maran:
Hi all,
can anybody tell me how to deploy a .war file(containes JSP and XML) in the web?.i am using mySQL as the database. and database script is not included in .war file.
which properties i have to change?.in both database and JSP(example river info)?.
anyone experienced please tell me the practical conciderations should be made for deploying web application( esp: war).
thanks in advance.

[ January 06, 2004: Message edited by: Bear Bibeault ]

alexis
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deploying .war in web