Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the role or need of weblogic.xml file inside weblogic server

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

Hi

Could anybody please let me help in knowing what is the role of weblogic.xml file inside the weblogic server ??

I could only see this inside the weblogic.xml file :



Please share your ideas .

Thanks in advance .
 
Misha Ver
Ranch Hand
Posts: 470
 
Lavanya Halliwell
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I noticed that the weblogic.xml is generated automatically when you, lets say, create a new netbeans project and specify that you are going to use weblogic. it's specific to weblogic, and I have tried to take one of my Sun Java App Server 8.2 projects and deploy it on weblogic, but it doesn't work unless the project has weblogic.xml ahead of time. (not sure if this is the only difference between projects made for Weblogic and projects made for sun app server)
 
Ed Ward
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
weblogic.xml is not required for an application to be deployed to WL. At least for WL10 and I think it was the same for WL7, I can't speak to any other versions. I have several apps deployed to WL, some use it some don't. It's for setting some WL specific configs and some other configs which are not necessarrily WL specific. Some of them can even be set by other means if I'm not mistaken. If you are trying to deploy to WL and it is complaining about not having a weblogic.xml then I suspect Netbeans is setting something in your project build archive which is in turn instructing WL to look for weblogic.xml on deployment. All JEE app-servers typically have some server specific config files which can be included in the app archive, though they are not necessarrily required.
 
Lavanya Halliwell
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose in that case it never hurts to have a blank weblogic.xml file?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic