Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes multiple war files in single ear with different context roots Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "multiple war files in single ear with different context roots" Watch "multiple war files in single ear with different context roots" New topic
Author

multiple war files in single ear with different context roots

Ren Sha
Greenhorn

Joined: Mar 08, 2012
Posts: 9
I have one ear file and two war files application.xml file is configured like


when i'm deploying it in local weblogic server it's working fine, but when i deployed it in the server, first.war is working fine but second.war is not. when i tried to access some pages from second.war file like

"http://host:port/second/somepage.html"

, i'm getting Error 404-Object Not Found Exception.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Did you check weblogic log files ? There may have been some errors during deployment.


[My Blog]
All roads lead to JavaRanch
Ren Sha
Greenhorn

Joined: Mar 08, 2012
Posts: 9
Christophe Verré wrote:Did you check weblogic log files ? There may have been some errors during deployment.


yep, i havent seen any error in weblogic log file,

<Nov 8, 2012 2:46:13 PM EST> <Info> <Deployer> <BEA-149059> <Module /first of application trial is transitioning from STATE_ADMIN to STATE_ACTIVE on server .>
<Nov 8, 2012 2:46:13 PM EST> <Info> <Deployer> <BEA-149060> <Module /first of application trial successfully transitioned from STATE_ADMIN to STATE_ACTIVE on server.>
<Nov 8, 2012 2:46:13 PM EST> <Info> <Deployer> <BEA-149059> <Module /second of application trial is transitioning from STATE_ADMIN to STATE_ACTIVE on server .>
<Nov 8, 2012 2:46:13 PM EST> <Info> <Deployer> <BEA-149060> <Module /second of application trial successfully transitioned from STATE_ADMIN to STATE_ACTIVE on server .>
 
Consider Paul's rocket mass heater.
 
subject: multiple war files in single ear with different context roots
 
Similar Threads
Application.xml Module loading order
Problem understanding application.xml
HTTP 404 error using JBoss
Loading sequence of the different modules in an EAR....?
Can I place server variable in my application.xml file,to create one ear file for all environments?