deployment - Moving web application (Java/JSP) to a web server -


i have developed application netbeans (using java, jsp , jquery) in windows environment. ready transfer application web host application can available on web , told application have moved linux environment (hosting service bought). here concerns:

  • how convert code linux? there automatic tool this?
  • how deploy application server online (what need copy , directory on web?)
  • my application writes directory on c:drive on laptop, should make application write correct directory designated directory on web server?

i have read here , there online haven't got specific solutions this.

how convert code linux? there automatic tool this?

one of java key features portability, far haven't used os-specific code running program using cmd or similar or library os-dependant (which rare in these times there yet), don't have do.

how deploy application server online (what need copy , directory on web?)

you need generate war file. file zip web pages (jsps) , web resources (js, css, image files) along java binaries (*.class) , libraries (that must on web-inf/lib folder).

since you're working netbeans, here's q/a generate war file: how can create war file of project in netbeans?

this war file must placed in deploy folder of web application server. usually, hosting provides tools (generally link on web user , password) administrate host, based on should ask (or find yourself) option upload war file.

my application writes directory on c:drive on laptop, should make application write correct directory designated directory on web server?

you need configure path constant in application, or better, configure in properties file (or somewhere else) in order read , use application easily. remember path should generic supported in every os. example, if use path name

c:\some\path\for\files 

its generic form be:

/some/path/for/files 

since you're going work on linux, make sure user executes tomcat (or web application server use on production) have enough permissions write on folder. can done (and here can fix please) using chown command:

#> chown -r user /some/path/for/files 

here's q/a manage files , path on java web applications: how provide relative path in file class upload file?


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -