Oracle WebLogic configuration file

Most java application servers have their own configuration files that they support. Basically, an xml file that employs descriptors that provide information to the server about the particular web application that is being deployed. For Java web apps, these files are stored in the WEB-INF directory.

Not knowing much about WebLogic I played around unsuccessfully with the file known as weblogic.xml, and even blew it off, stating, “I don’t need no stinkin’ weblogic config file.”

After a hundred or so failed deployments where my internal class files weren’t being recognized I ran into a lil’ diddy that stated that using the weblogic.xml and putting in this configuration would solved my deployment woes.

Here is the weblogic.xml code that save the day.

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>

I think it is very interesting how each Java web server has these different config files. Are we to master them all? Well, i’ll get going on some of the rest in future posts and then we won’t have to fear when a client comes around and says, “Well, we love your app, but does it work on JBoss?”

Advertisements

About javaclaus

Java Programmer, Code master, mountain biker, snowboarder, etc.
This entry was posted in Java Server Deployment, Software Programming. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s