[英]How to make a images Directory in Jboss Server Standalone folder at the time of deploying the war file in jboss server?
Without Request from Client to Server.I want to Create a Folder in JBoss Standalone Folder. 没有客户端到服务器的请求。我想在JBoss独立文件夹中创建一个文件夹。
First Thing i want to know is it possible for creating a folder in jboss at deployment time. 首先,我想知道是否有可能在部署时在jboss中创建一个文件夹。
If it is Possible then Any body can tell How many way are present to create a folder at deployment time. 如果有可能,那么任何机构都可以告诉您在部署时有多少种方式可以创建文件夹。
Thanks in Advance. 提前致谢。
Well actually I tried debugging to see why it wasn't working. 好吧,实际上我尝试调试以查看为什么它不起作用。 At the end of the day I figured out to make it work.
最终,我想出了办法。
Following are the changes to be done: 以下是要进行的更改:
${jboss.server.home.url}deploy ${jboss.server.home.url}../../../static/content/
$ {jboss.server.home.url}部署$ {jboss.server.home.url} ../../../ static / content /
Please make sure that your paths are relative to JBOSS configuration parameters. 请确保您的路径相对于JBOSS配置参数。 I tried giving absolute paths, but it didn't work out.
我尝试给出绝对路径,但没有成功。
Edit JBOSS_HOME/server/default/deploy/jbossweb.sar/context.xml with allowLinking="true" attribute in tag. 使用标签中的allowLinking =“ true”属性编辑JBOSS_HOME / server / default / deploy / jbossweb.sar / context.xml。
Your images/documents would be under the content folder. 您的图像/文档将在内容文件夹下。
Now try accessing http://localhost:8080/content . 现在尝试访问http:// localhost:8080 / content 。
Above steps should work no matter what. 无论如何,以上步骤均应起作用。 Please let me know if any issues.
请让我知道是否有任何问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.