sergionni
sergionni

Reputation: 13510

JBoss edit files inside .WAR

Is it possible to edit .xhtml or .css files under JBoss like in Tomcat - on fly?
Without rebuilding of WAR file.

Tried extracted folder,like described here : exploded folder
Didn't help.

Tried plugin under Eclipse for JBoss integration.
Got .sar file,but it's not recognized by JBoss.

JBoss version is 7.1.1

Upvotes: 3

Views: 3050

Answers (3)

parasietje
parasietje

Reputation: 1539

The proper way to do this is by using an exploded folder. Please ask another question with title "Exploded folder does not work in JBoss".

Your evaluation of "Didn't help." is a little short to allow us to solve your problem.

  • Did you use myFolder.war as the folder name?
  • Does myFolder.war contain a directory WEB-INF, with a web.xml ?
  • Are there any errors in the JBoss server.log?
  • Maybe you disabled the JBoss deployment scanner?

Upvotes: 0

sergionni
sergionni

Reputation: 13510

I've found way how to edit resources.
There is actually,extracted folder,resided here:

$your_jboss_project_folder$\standalone\tmp\vfs

this folder can hold name,for instance,tempbecfe4f41f983f15
There you can find extracted WAR folder and jar,if you add it to \deployments folder

Upvotes: 2

uaarkoti
uaarkoti

Reputation: 3657

You will have to configure the web subsystem to enable development so that JBoss can look for modification. The configuration you'll need to setup is

<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">
...
    <configuration>
        <jsp-configuration development="true"/>
    </configuration>
</subsystem>

Refer here and here for more information

Upvotes: 4

Related Questions