PF/Tomcat deployment on vps

UI Components for JSF
Post Reply
timotius_pamungkas
Posts: 117
Joined: 19 May 2010, 03:50

15 Jul 2010, 11:07

anyway, this may not a specific primefaces question, but i really appreciate any information.

I'm working on a finance company and develop using Java and Tomcat for some applications. All of our java applications are embedded into Oracle e-business suite. To call it, basically we create a pl/sql procedure which redirect user to application context, something like http://internal_ip_address:8080/web_context/some_pages.faces

Currently i'm developing a simple application for personal use using JSF2, Tomcat 6, and PF2.1. In case i want to deploy my JSF application, along with mysql database into a VPS, what should i do? Of course i have to register a domain, something like www.mysite.com, but will user accessing that URL will be redirected into JSF application (tomcat app) without them have to type www.mysite.com:8080/context_path (Tomcat port and context_path)?

I intend to use local vps provider who does not provide JSP hosting, but rent a vps with centOS installed for their vps customer

@catagay: sorry if this is not a specific PF question, but I guess forum posting guide does not forbid it?

thank you
Tomcat 7.0.25
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

15 Jul 2010, 14:07

Yes, you can configure tomcat to use port 80 or run tomcat behind apache server. I'll also move showcase to port 80 as some companies block 8080 making online showcase unavailable for them. www.primefaces.org and showcase is also deployed on a vps, I prefer vps over shared hosting as I can install whatever I want.

timotius_pamungkas
Posts: 117
Joined: 19 May 2010, 03:50

16 Jul 2010, 03:24

thanks for reply

yes, i've moved port on web.xml into port 8080 and it works fine, at least at localhost (accessing http://localhost/myContext runs well). Anyway, i've never use vps before, so if I use vps and register domain to www.mysite.com, it will runs directly on tomcat (assuming i use standalone tomcat), or a better approach is to deploy tomcat behind apache server?

Some googling gives a different perspective, few say that installing behind apache will be easier, while few say direct tomcat is better for security reason

thanks
Tomcat 7.0.25
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 44 guests