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

deploying .war in web

 
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Murasoli Maran
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Tim Baker
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 193
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 541
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you mean like http://www.no-ip.com/ ?
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic