Jboss EAP 5 and Tomcat 6 on the same Win env. (Jboss gets Toncat`s home page when`s up)
I`m newbie to Java technologies, just trying to catch up some idea of it. I was trying to build a java environment to play with Eclipse, Mysql, Tomcat and Jboss and integrate these together. I did: 1. Installed jdk1.6.0_20 (including JAVA_HOME and path variables; I work on Win Vista), mysql 5 and eclipse-jee-galileo (the latest one, 3.6 I believe) and all went good - java programs are compiled and ru开发者_如何学Cn getting a DB connection. 2. Installed Jboss enterprise-installer-5.0.1.jar with localhost:8080 and this also went good - run.bat started it and I could log in as admin thru its home page. I integrated it with eclipse and could start and stop it from there too. 3. I got apache-tomcat-6.0.26-windows-x86 and this also runs and stops from command line and from eclipse. But this one uses localhost:8080 without asking.
Now the problem is when I start jboss I get Tomcat home page and I can`t fix it. Is it probably because both now use localhost:8080? BTW, does Jboss EAP 5 contain Tomcat inside and I shouldn't add that Tomcat separately?
Thanks for you help in advance, Eddie
port 8080 is the default port used by tomcat and other servlet containers and yes, JBoss is using tomcat under the hood.
You need to move the port(s) of JBoss or Tomcat.
For tomcat you need to open /conf/server.xml with a text editor and search for 'port='.
You'll find the http connector, https connector, mod_jk, etc. I think only port 8080 and 8009 are enabled by default
move all these to for example 18080 and 18009 etc...
Then you can run them both side-by-side.
You do not really need to as JBoss can also deploy your war files.
If you want a fast container for testing consider Jetty as it starts very fast compared to the 2 above.
精彩评论