-
1. Re: env-entry elements not bound with virtual hosts (externa
dduchaine Apr 28, 2006 9:06 AM (in response to dduchaine)Simpler question here:
Is it possible to deploy an exploded directory which has the .war structure outside the jboss deploy/ directory?
Part of the answer is yes because we currently have a working webapp (jsp compilation, execution and reloading) deployed this way BUT services provided by JBoss such as JNDI and JAAS are not visible to the application.
Where should we look? -
2. Re: env-entry elements not bound with virtual hosts (externa
j2ee_junkie Apr 28, 2006 9:35 AM (in response to dduchaine)Are these JNDI and JAAS services available to your application if you deploy in $JBOSS_SERVER/deploy directory?
Also, I am not sure, but I think setting up JNDI references is a two step process. The web.xml elements specify how to map resources from names that are deployment specific to names used by application. Then you must also map from the server environment name to your deployment environment name. See http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html for more details.
Finally, I would try to look at TRACE logging of the Deployer and JNDI actions to see how things are getting bound(or not bound).
hope this is helpful, cgriffith[/url] -
3. Re: env-entry elements not bound with virtual hosts (externa
j2ee_junkie Apr 28, 2006 11:39 AM (in response to dduchaine)I am sorry if I am miss-leading. I am not sure what exactly your application is not able to access. My post before assumes that you are having trouble setting a resource reference. However, after reading your post again, as well as the other thread (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=80616), I am sure I am way off base.
That said, I would still look at TRACE logging to see what is happening when war is deployed.
If you have any other info, let us know so we can help,
cgriffith -
4. Re: env-entry elements not bound with virtual hosts (externa
dduchaine Apr 28, 2006 12:03 PM (in response to dduchaine)Found the problem. Virtual host's files MUST be deployed in the deploy directory. I simply put a symbolic link (on Linux) named with a .war suffix
For symbolic links on Windows, see http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3887963
Also, I removed the
appBase="c:\\domaindirectory"
autoDeploy="false"
deployXML="false"
attributes found in the Host element in server.xml
(which was used to specify the webapp's root directory)
Now the webapp is hooked into JBoss and JNDI, datasources, JAAS are accessible as expected.
thanks for your time