-
1. Re: JBoss AS 5.1 and Virtual Directories
brannic Apr 27, 2010 10:40 AM (in response to brannic)Ok, doing some more digging I found this article discussing External Directories which seems to be the alternative for JBoss 5.1.0.
http://community.jboss.org/wiki/ExternalDirectories
Problem is, when I add this to the profile.xml file, I still cannot access the generated file using a URL.
<property name="bootstrapURI">${jboss.server.home.url}conf/jboss-service.xml</property> <property name="deployersURI">${jboss.server.home.url}deployers</property> <property name="applicationURIs"> <list elementClass="java.net.URI"> <value>${jboss.server.home.url}deploy</value> <!-- External Directories --> <value>${jboss.server.home.url}virtualDirectory/reporting/output</value> <value>${jboss.server.home.url}virtualDirectory/app/output</value>
I still get a HTTP 404. I can see the file is being created in the directory specified but I can't seem to access it via URL.
-
2. Re: JBoss AS 5.1 and Virtual Directories
brannic Apr 27, 2010 11:48 AM (in response to brannic)At this point I'm wondering if the problem is the URL.
Using the jmx-console, scanning through the list of JMX MBeans I can see the generated file is deployed in the directory specified so the system is picking it up.
Domain jboss.deployment type Deployment id "vfsfile:/C:/root/app/server/default/virtualDirectory/reporting/output/resunitpatsched-0001.pdf" Java Class org.jboss.deployers.vfs.plugins.structure.AbstractVFSDeploymentContext Description Management Bean. Problem is I can't seem to access it from the browser.
Using the previous example, I tried using
http://localhost:port/reporting/output/report.pdf
as well as
http://localhost:port/virtualDirectory/reporting/output/report.pdf.
Neither of these appears to be working.
Anyone have any ideas on what I'm missing here?