« Return to Thread: Problem with context ROOT on jboss 6

Re: Problem with context ROOT on jboss 6

by Guto Maia :: Rate this Message:

| View in Thread

Hi,

No my application is being deployed as a SINGLE ROOT.war file. The problem is that JBoss default ROOT.war is a directory (on JBoss 6x).


However, in a act dispair, i've tried the example. The only visible diference is the <location> attribute. However, if I use it, I've got an: java.lang.NoSuchMethodException: org.codehaus.cargo.container.jboss.deployable.JBossWAR.setLocation(java.lang.String). Cause, of course, there is no setLocation on class:
http://cargo.codehaus.org/maven-site/cargo-core/cargo-core-containers/cargo-core-container-jboss/apidocs/org/codehaus/cargo/container/jboss/deployable/JBossWAR.html

Just to show ilustrate the problem, I've created a very simple example. That is attached.
The only thing you need to do is type:
mvn clean package cargo:run (yes... it takes long to download jboss 6)

thanks

Guto Maia
@gutomaia



2011/9/13 S. Ali Tokmen <nospam@...>
Aaaahhhh... Just by chance, is your application getting deployed in an expanded fashion? Read http://cargo.codehaus.org/Static+deployment+of+expanded+WAR for details.


S. Ali Tokmen
http://ali.tokmen.com/

GSM (ch): +41 79 207 29 22 [Swisscom]
GSM (fr): +33 66 43 00 555 [Orange]
GSM (tr): +90 555 266 52 73 [Avea]

My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on http://contact.ali.tokmen.com

On 2011/09/13 20:03, Guto Maia wrote:
Yep... it does :D

Guto Maia
@gutomaia



2011/9/13 S. Ali Tokmen <nospam@...>
Hi Guto

So... Does it work if you use any other name than ROOT?


Thank you

S. Ali Tokmen
http://ali.tokmen.com/

GSM (ch): +41 79 207 29 22 [Swisscom]
GSM (fr): +33 66 43 00 555 [Orange]
GSM (tr): +90 555 266 52 73 [Avea]

My AIM, ICQ, MSN Messenger and Yahoo IM
contact details are on http://contact.ali.tokmen.com

On 2011/09/13 19:50, Guto Maia wrote:
Hi,

@Tokmen I've just renamed my aplication name and other stuff to be more general. So anyone could follow up and on future google search, people might be sended to this post.

@Hammar, no it is not an acess rights problem.

I'm running mavem with mvn package cargo:run and the above problem only appears if the context ROOT is set.

As far as I debbuged, what is happening under the hood is:
in :

the context ROOT.war is a directory.

And my application creates a ROOT.war FILE. One tries to overwrite the other with ends with the exception.

Since the file ROOT.war existis on /target/cargo/configurations/jboss6x/deploy
the directory ROOT.war from /target/cargo/installs/jboss-as-distribution-6.0.0.Final/jboss-6.0.0.Final/
Coulnt overwrite to file.

Any other clue?

I will try to create a demo app, It might be an bug issue!



Guto Maia
@gutomaia




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

cargo-test.zip (3K) Download Attachment

 « Return to Thread: Problem with context ROOT on jboss 6