Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to stop start twice to have my app instead of manager app

 
igor bolsovitch
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The first time I deploy, when I enter the url of my website (let's say : www.mysite.com) on my web browser, it takes me the tomcat manager application.
the next time when I stop/start tomcat, www.mysite.com goes to my application.

This is the scenario from beginning :
- stop tomcat
- delete mysite.war , delete mysite directory (under webapps)
- scp the new version of mysite.war from my pc to the server (under webapps)
- start tomcat
- tape : www.mysite.com ----------> it goes to the manager application of tomcat.
- stop/start tomcat
- tape : www.mysite.com ----------> OK it show up my site.
- any stop/start : no problems www.mysite.com shows my site.

Can somebody explain that to me please ?

Thanks for the help.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would expect you to see the default 404 page if you hit the server before your app was deployed. Not the manager application.

Are you really seeing the app at: http://localhost:8080/manager/html
?

 
igor bolsovitch
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ben,

My application completely deployed and I still reach the manager even 5 minutes after tomcat start.

And yes I'm seeing the manager application at : http://myip:8080/manager/html

Thanks.

ps 1
I'm running tomcat behind apache (proxy http).

ps 2
I made some change to my $CATALINA_BASE/conf/server.xml so that I don't have to add /appname at the end of the url


 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would try to duplicate the issue hitting Tomcat directly (not through the proxy).

If you don't still see this issue when hitting it directly the the issue is most likely in the proxy.
 
igor bolsovitch
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok Ben, I'll give it a try and come back in few minutes ;)
 
igor bolsovitch
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made the test and this is what i get :

http://myip:8080/ ----> hit the manager
http://www.mysite.com ----> hit the manager
http://myip:8080/myapp ----> hit my application
http://www.mysite.com/myapp -----> hit my application

I restarted apache but it doesn't help but when I restart tomcat then it is ok.

So I think the problem is at tomcat level and isn't at the proxy one, isn't it ?

Thanks for your help as I'm really stuck with this.
 
igor bolsovitch
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any one to help please ?
 
igor bolsovitch
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,

After a hard work, I solved my problem.

My solution is : whenever you want to run multiple application with tomcat and you want to access each application without its name at the end of URL, then you must put each app in its folder under CATALINA_BASE and rename it to ROOT.

You need to follow this howTo : http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

and then apache configuration goes easy :



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic