aspose file tools*
The moose likes JBoss/WildFly and the fly likes How can i change the context on JBOSS EPP 5.2.2 With Publisher Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How can i change the context on JBOSS EPP 5.2.2 With Publisher" Watch "How can i change the context on JBOSS EPP 5.2.2 With Publisher" New topic
Author

How can i change the context on JBOSS EPP 5.2.2 With Publisher

Felipe Rivera
Greenhorn

Joined: Apr 05, 2013
Posts: 3
Hello guys, i have a seriously problem with JBOSS
i am tried to change the context but it doesn't work

I put this code on the application.xml of my EAR file

*I have two WAR inside my EAR, so i changed the name on both*


Before Changes localhost:8080/ecmdemo/classic

after changes localhost:8080/gustavo/classic

i have changed the context in the file ROOT.war\WEB-INF\jboss-web.xml, too.




The problem is that the web page doesn't load the images and the scripts, if i open an image in a new_tab show this

http://localhost:8080/ecmdemo/rest-ecmdemo/jcr/repository/collaboration/sites%20content/live/classic/web%20contents/site%20artifacts/Logo/medias/images/Logo.gif

but if i change to this, then i can see the imagen
http://localhost:8080/gustavo/rest-ecmdemo/jcr/repository/collaboration/sites%20content/live/classic/web%20contents/site%20artifacts/Logo/medias/images/Logo.gif

What could be the problem? I imagine than should exist some file responsible of managment URL.




*This is the content of my EAR*


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

I'm confused. You wrote that you changed the context from the default of "ecmdemo" to "gustavo" and then when you use http://xxx/ecmdemo/xxx it doesn't work but when you use http://xxx/gustavo/xxx then it does work. Frankly, that is what I would have expected - you can now use the context that you defined. Is there a typo in your post???


JBoss In Action
Felipe Rivera
Greenhorn

Joined: Apr 05, 2013
Posts: 3
Peter Johnson wrote:I'm confused. You wrote that you changed the context from the default of "ecmdemo" to "gustavo" and then when you use http://xxx/ecmdemo/xxx it doesn't work but when you use http://xxx/gustavo/xxx then it does work. Frankly, that is what I would have expected - you can now use the context that you defined. Is there a typo in your post???


the problem is that the images and scripst don't load ,

the initial webpage http://xxx/gustavo/xxx


when i open a imagen in a new tab


when i change the context in the URL



that is my problem

by the way sorry for my english , greetings from chile.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i change the context on JBOSS EPP 5.2.2 With Publisher
 
Similar Threads
Dependency between wars
EJB Packaging classloader..
web module of ear is not getting picked up by WL10.3.0.0
Deploying EAR files
JBOSS DeploymentException : Not able to find module file : .war in a .ear file