Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting war and ear files to work on Weblogic 10.3

 
James Collings
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmmm... weird. Is this deployed under auto deploy ? Exploded or archived deploy ? Where are you deploying from, an ant script, maven script, WLST ?
 
James Collings
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic