Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

ear with war

 
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an index.html in ear file as wellcome page. The context root is "/dqe". Everything works fine on my single server application server. If I enter "http://myMachine:9080/dqe/", the wellcome page will come up. Then, I deploy the same ear on WAS AE on solaris and "http://IPofSolarismachine:9080/dqe/"; stop working. The difference is that I have two application on solaris machine and one application servers on single server machine. I think this should not matter every request goes to virtual host. If somebody know what could be wrong, please let me know.
Jun Hong
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use port 9080 in your tests. That's an internal port directly to the servlet engine. It can change if you have more than one app server on a machine. You should always use port 80, which goes to the HttpServer and is then directed to the (correct) application server.
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
Jun Hong
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kyle,
I have two application server one is using 9080 between web plug in and web container. The other is using 9082. People told me not to use 9080 for production. I got the impression that it is OK for development. Anyway, I am quite confused. In my case, a request from browser will hit Http serser using 9080, then Http server will use web server plug in to contact web container on my application server. If my web application is on the first application server port 9080 is used. So, using 9080 is not good for performance. I think that is the reason why people say don't use 9080, because two applications are using the same port. Port 80 is the default port for http server. So, if I don't specify port it is always 80.
Still, I can not find the index.html find throw my browser. I check the log file on http server. The error is 404.
Now, I start to think may be it is related to security. I turn on the security on my application server. My ejb client must use username and password to access ejbs. My index.html and servlet is in another .ear file. I didn't define any security role protected area in the index.html's ear. It shouldn't have security problem.
I can access IBM's examples at http://myMachine/webapps/examples/, but what happens to my .ear I cannot access the wellcome page.
Jun Hong
 
Jun Hong
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I looked at the virtual host port it is 80 and 9080. So, both port works. What did web server do? Did it handle html? I deploy the html on application server. Does the application server send my html to web server? I think virtual host is just a concept behind it we have server machines.
Jun Hong
 
Jun Hong
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
It seems to me. I should set the alias of my virtue host to *:9080, *:9082, and *:80. Is it right? Also, after I install a new .ear file I should regenerated the web plugin xml file. I will try and see what will happen.
Jun Hong
 
    Bookmark Topic Watch Topic
  • New Topic