aspose file tools*
The moose likes BEA/Weblogic and the fly likes Getting war and ear files to work on Weblogic 10.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Getting war and ear files to work on Weblogic 10.3" Watch "Getting war and ear files to work on Weblogic 10.3" New topic
Author

Getting war and ear files to work on Weblogic 10.3

James Collings
Ranch Hand

Joined: Sep 21, 2006
Posts: 36
If we can figure this issue out, I'll see if I can't publish/post a
maven-based solution in the Maven and Oracle forums so that others
will not have to go through our pain.

We are having all the usual problems regarding where Weblogic expects
to find things and what exclusions need to be made in weblogic.xml for
war files and weblogic-application.xml for ear files. Any insights
would be deeply appreciated.

Here is what our exploded war structure currently looks like.

.
|____index.jsp
|____WEB-INF
| |____lib
| | |____...a long list of jar files
| |____tags
| | |____...a short list of tag files
| |____applicationContext.xml
| |____web.xml
| |____content
| | |____...a bunch of jsps
| |____tlds
| | |____...some tlds
| |____classes
| | |____mailProperties.properties
| | |____struts.xml
| | |____logback.xml
| | |____com ... the root of our class heiarchy
|____images
| |____...a list of images
|____META-INF
| |____maven
| | |____com
| | | |____project-name
| | | | |____pom.xml
| | | | |____pom.properties
| |____MANIFEST.MF
|____script
| |____...some java script files
|____style
| |____...some css files

Exceptions when trying to deploy are as follows:

INFO: ... initialized Struts-Spring integration successfully
java.lang.Exception: Could not load
servers/AdminServer/tmp//appmergegen_1254502686535_OurApp/war/WEB-INF/classes/com...
at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:745)
at com.opensymphony.xwork2.util.finder.ClassFinder.<init>(ClassFinder.java:148)

The exception above repeats for every .class file found below
WEB-INF/classes/com, i.e. the the ones in this module rather than the
ones in included modules.
Checking the file system shows that there is no such directory as
"appmergegen_1254502686535_conap". I'm uncertain if there is actually
supposed to be anything there, but it would seem like it.

I've a theory that if we can solve the above issue, we can solve the
rest ourselves.

Could this have something to do with staging?
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

hmmm... weird. Is this deployed under auto deploy ? Exploded or archived deploy ? Where are you deploying from, an ant script, maven script, WLST ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
James Collings
Ranch Hand

Joined: Sep 21, 2006
Posts: 36
Deepak Bala wrote:hmmm... weird. Is this deployed under auto deploy ? Exploded or archived deploy ? Where are you deploying from, an ant script, maven script, WLST ?


Deployments are being done using the AdminServer interface so what ever the defualts would be for that, I guess.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

James Collings wrote:
Deepak Bala wrote:hmmm... weird. Is this deployed under auto deploy ? Exploded or archived deploy ? Where are you deploying from, an ant script, maven script, WLST ?


Deployments are being done using the AdminServer interface so what ever the defualts would be for that, I guess.


If it is possible, can you post a war file here ? The classes can be stripped out and replaced by dummy classes and you can strip out company / project specific information. I can try deploying it in a local container and debug it if possible
James Collings
Ranch Hand

Joined: Sep 21, 2006
Posts: 36
Deepak Bala wrote:
James Collings wrote:
Deepak Bala wrote:hmmm... weird. Is this deployed under auto deploy ? Exploded or archived deploy ? Where are you deploying from, an ant script, maven script, WLST ?


Deployments are being done using the AdminServer interface so what ever the defualts would be for that, I guess.


If it is possible, can you post a war file here ? The classes can be stripped out and replaced by dummy classes and you can strip out company / project specific information. I can try deploying it in a local container and debug it if possible


I'll give that a try if I get a chance today.
 
Don't get me started about those stupid light bulbs.
 
subject: Getting war and ear files to work on Weblogic 10.3