Posted by: peteinman | July 23, 2008

Deploying WebLogic 8.1 Application on WebLogic 10MP1

Amongst other things, I’m currently evaluating what’s required to move our WLS 8.1 application to WLS 10.

My first deployment with WLST resulted in the stack trace below where the important part is highlighted in red. I thought it’d stick this on a blog as there aren’t many references to the actual solution.

<03-Jul-2008 21:55:42 o’clock BST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID
‘1215118541927’ for task ‘7’. Error is: ‘ ‘
        at weblogic.application.internal.BaseDeployment.throwAppException(
        at weblogic.application.internal.BaseDeployment.prepare(
        at weblogic.application.internal.DeploymentStateChecker.prepare(
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(

Technorati Tags: ,,

        at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(
        at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(
        at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(
        at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(
        at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(
        at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(
        at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCal
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDe
        at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$
java.lang.IllegalArgumentException: dom4j-core,jdom,xml-apis,xerces,junit-Extension-Name
        at java.util.jar.Attributes$Name.<init>(
        at java.util.jar.Attributes.getValue(
        at weblogic.application.library.LibraryReferenceFactory.getOptPackReference(
        at weblogic.application.internal.OptionalPackageProviderImpl.getOptionalPackages(
        at weblogic.utils.classloaders.ClassFinderUtils.getOptionalPackages(
        at weblogic.utils.classloaders.ClassFinderUtils.getManifestClassPath(
        at weblogic.utils.classloaders.ClassFinderUtils.getManifestFinder(
        at weblogic.utils.classloaders.ClassFinderUtils.getManifestFinder(
        at weblogic.utils.classloaders.JarClassFinder.<init>(
        at weblogic.utils.classloaders.JarClassFinder.<init>(
        at weblogic.utils.classloaders.ClasspathClassFinder2.getClassFinder(
        at weblogic.utils.classloaders.ClasspathClassFinder2.setClasspath(
        at weblogic.utils.classloaders.ClasspathClassFinder2.<init>(
        at weblogic.utils.classloaders.ClasspathClassFinder2.<init>(

It was obviously a problem with part of something XML related. After some digging, and googling I found the following post;

the MANIFEST file of the jaxen-1.1-beta-2.jar distributed with 
xml-beans contains problematic extension entries (see end of email). 
these entries do not follow the conventions specified by sun (in 
particular, they must be separated by spaces rather than commas) and 
cause problems when installed in some containers (for example, some 
versions of tomcat 4).

the easiest way to fix this problem seems to be to remove all the 
offending lines from the MANIFEST. i wonder whether the jar in CVS 
should be amended or whether a FAQ entry would be sufficient.

So, changing the “Extension-List” entry in the manifest file to have spaces rather than comma’s cured the problem for me. The correct line can be seen below.

Extension-List: dom4j-core jdom xml-apis xerces junit

Leave a Reply

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

You are commenting using your 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 )

Google+ photo

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

Connecting to %s


%d bloggers like this: