• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

different port to different app

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

i'm using tomcat 6 and i'm having a problem

i need to to 2 things...
i have to make my tomcat access a diferent .war file if i type the url with different port number...

eg: i have test.war and test1.war
if i type http://localhost:8180 i must start the app test (just like if i typed http://localhost:8080/test) and if i type http://localhost:8181 it must start the app test1 (like http://localhost:8080/test1)

i did it once using the tag service... but i didn't save it and tomcat overwrote my file, now i can't find the way i did it before... i tried several things like

<Service name="lt1">
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

<Connector port="8180" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
proxyPort="80"
disableUploadTimeout="true"/>

<Context path="/" docBase="lt1" debug="0" reloadable="true" >
</Sevice>

<Service name="lt2">
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">

<Connector port="8181" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
proxyPort="80"
disableUploadTimeout="true"/>
<Context path="/" docBase="lt1" debug="0" reloadable="true" >
</Sevice>

but it dont work... and i dont want do use the tag server...

If someone know how can i do this will be a greate help!!

thanks
 
Never trust an airline that limits their passengers to one carry on iguana. Put this tiny ad in your shoe:
ScroogeXHTML 8.7 - RTF to HTML5 and XHTML converter
https://coderanch.com/t/730700/ScroogeXHTML-RTF-HTML-XHTML-converter
    Bookmark Topic Watch Topic
  • New Topic