Simon,
"--Yeah, you can find the config in external webserver directly."
That makes sense, and that is what I got from the pdf I posted. I expect to find a plugin-cfg.xml file in the external HTTP server directories. However, I only have one, and it's in /WebSphere/Appserver/config. Is it under a different file name with the external server?
"For embedded HTTP server, I should say I haven't been able to deploy webapp with "/" context root and get welcome page working. But as long as your webapp has other context root, things should be fine."
Time for a rookie question. I tried this by using Earexpander and changing the context-root to "/pigbank". I then recreated the EAR and tried to install it. I got errors on the install... looked like it was during the process of creating deployment code.... maybe a compile error... not sure. My question is do I have to change anything other than the context-root entry in the application.xml file?
"Plug-in should apply to embedded HTTP Server also,"
I really want to understand this point. Check out the diagram on page 5 of 28 here:
ftp://vadd1:[email protected]/1/wsdd/pdf/presents/WS40ST08.pdf I realize documentation can be in error, but according to this diagram, the embedded server doesn't look at the plugin-cfg.xml. I would be the first to admit that doesn't make sense. Why have two different ways to look up the info. I'm sure you are right. Kyle, would you care to confirm.
"you can configure your AppServer(go to service, choose web container, specify HTTP transport) to listen to other physical port number. Then you have to configure the Virtual Host to listen to that port also, the virtual host is the one webapp is associated with.
So, hopefully you can deploy the sample ear with a non "/" context root, and get it running.
Virtual Host plays a conduit role here, this is very different from WLS."
I had found where I would add another transport in AEs. It's under nodes/machine name/Application Servers/Default Server/Web Container/HTTP transports. Here is the question. Isn't the transport only for the external HTTP server? If I add a virtual host, and only intend to reference it from the embedded server, do I still need to add the transport? When I setup the new virtual host, I set it to port 9081.
Kyle,
"OK, the basic question I've got is why are you trying to create a virtual host? Also, did you at any time run GenPluginCfg and restart your external web server?
First, I am now trying to only use the embedded HTTP server (for this exercise of installing the EAR and running it). Do I still need to run GenPluginCfg for the embedded server. Note: see related question to you above in my response to Simon.
I was trying to create a virtual server for a couple of reasons. The first was, that according to the Redbook, if I ran the sample application under the default_host, I would need to disable the sample applications, because they also had a context-root of "/". Another reason was to force myself to learn the issues of setting up a virtual host (in hindsight, maybe not a good decision

). The redbook also suggested setting up a new virtual host would bypass the problem. I'm at the stage where I want / need to look at
alot of sample code, so I would like to leave as many examples running as possible.
"GenPluginCfg actually adds the entries from the App Server's database of URLs and virtual hosts into the plugin-cfg.xml file. The plugin should pick it up directly, but to be safe, I always restart it after regenerating the file."
What does App Server's database of URLs mean? By the way, the new virtual host does appear to be in my plugin-cfg.xml file. I had asked earlier about the Uri Name entries in the file. I'm still confused about them, and if there is any connection with them and the context-root setting in the application.xml file. I probably need a good read on web application in WebSphere. If you know of a good place to start, I will be all over it.
I asked this above in the section to Simon, but let me ask it again to you. Does the embedded HTTP server in AEs use the plugin-cfg.xml file, and does it care about transports. I would think transports for sure or just for external servers.
Kyle, Simon... I really appreciate the help.
J2EE education over a message board isn't easy. :roll:
Mike