linux-image

Well-Known Member
Jun 8, 2004
1,191
1
168
India
cPanel Access Level
Root Administrator
you need to enable tomcat for the domain via the WHM and then create a WEB_INF folder inside the public_html folder of the domain and upload the files there. Then you can access it via domainname.
 

ialex03

Well-Known Member
May 15, 2003
56
0
156
Yes, I know it.
But if I want to upload my application in .war file
So I won't be able to access this application via my domain name?
 

casey

Well-Known Member
Jan 17, 2003
2,303
0
191
At first you said you wanted to access it via your domain name, now you say you don't want to access it by your domain name? Could you explain more clearly what you want to do?

.war files can be deployed and they can be accessed via your domain.
 

bsasninja

Well-Known Member
Sep 2, 2004
527
0
166
Jsp Dont Work

How do I enable TOMCAT to a domain in WHM ?¿ I cant find the option.

I ulopaded a example .jsp file to my my web and i doesnt work. :confused:
 

casey

Well-Known Member
Jan 17, 2003
2,303
0
191
ialex03 said:
If I upload a .war file into
/usr/local/jakarta/tomcat/webapps
and restart tomcat I cannot access the application via
http://mydomain.com

but I can access it via
http://IPaddress:8080/

I just want to know how to access the application I've uploaded via the domain name.
http://mydomain.com/servlet/application
http://mydomain.com:8080/application
don't work.

Please advise.
If you want to access it with :8080, just don't install servlets on that domain. Deploy the .war file with the Tomcat Manager and you're all set. If you want to access it without the :8080 then add servlet support and copy the application to your public_html directory.
 

linux-image

Well-Known Member
Jun 8, 2004
1,191
1
168
India
cPanel Access Level
Root Administrator
casey; the issue is not access via 8080 or without it. the problem is that he wants to deploy a war file wrt a specific domain..

for eg.. i have a domain xyz.com and the server ip is 1.2.3.4

If i deploy the war file via the http://1.2.3.4:8080/manager/ ; then iam able to see it only via the ip address and not the domain name.

The issue is deployment of a war file for a specific domain so that it is accessible via http://xyz.com/....jsp.

i know that you shld be creating a WEB_INF and related folder to do this.. but it did be great if you can point a tutorial for the same.
 

casey

Well-Known Member
Jan 17, 2003
2,303
0
191
linux-image said:
If i deploy the war file via the http://1.2.3.4:8080/manager/ ; then iam able to see it only via the ip address and not the domain name.
I don't have much experience in this area, but all "deploying" means is decompressing the archive. When you deploy it in http://ipaddress:8080/manager/ what you are doing is expanding the archive into the tomcat folder. I do not know how to get it to expand in the user's home directory, but I do know that you can simply copy the files from the tomcat folder into the user's directory. The same thing will be accomplished.