0

I am in the process of upgrading a legacy java application from Weblogic 8.1 to Weblogic 10.3.6 (also the java version from 1.4 to 1.6). I built the weblogic full client jar file as per these instructions and added it to the classpath.

When I deploy the application in Weblogic 10.3.6 it fails with the following error...

Caused by: java.lang.IllegalArgumentException: javacc,ant,commons-collections,log4j,junit-Extension-Name
        at java.util.jar.Attributes$Name.<init>(Attributes.java:447)
        at java.util.jar.Attributes.getValue(Attributes.java:99)
        at weblogic.application.library.LibraryReferenceFactory.getOptPackReference(LibraryReferenceFactory.java:135)
        at weblogic.application.internal.OptionalPackageProviderImpl.getOptionalPackages(OptionalPackageProviderImpl.java:44)
        at weblogic.utils.classloaders.ClassFinderUtils.getOptionalPackages(ClassFinderUtils.java:145)
        at weblogic.utils.classloaders.ClassFinderUtils.getManifestClassPath(ClassFinderUtils.java:126)
        at weblogic.utils.classloaders.ClassFinderUtils.getManifestFinder(ClassFinderUtils.java:98)
        at weblogic.utils.classloaders.ClassFinderUtils.getManifestFinder(ClassFinderUtils.java:79)
        at weblogic.utils.classloaders.JarClassFinder.<init>(JarClassFinder.java:41)
        at weblogic.utils.classloaders.JarClassFinder.<init>(JarClassFinder.java:30)
        at weblogic.utils.classloaders.ClasspathClassFinder2.getClassFinder(ClasspathClassFinder2.java:87)
        at weblogic.utils.classloaders.ClasspathClassFinder2.setClasspath(ClasspathClassFinder2.java:80)
        at weblogic.utils.classloaders.ClasspathClassFinder2.<init>(ClasspathClassFinder2.java:54)
        at weblogic.utils.classloaders.ClasspathClassFinder2.<init>(ClasspathClassFinder2.java:45)
        at weblogic.application.io.ExplodedJar.buildClasspathFinder(ExplodedJar.java:141)
        at weblogic.application.io.ExplodedJar.getClassFinder(ExplodedJar.java:87)
        at weblogic.servlet.internal.ArchivedWar.getClassFinder(ArchivedWar.java:72)
        at weblogic.servlet.internal.War.init(War.java:246)
        at weblogic.servlet.internal.War.<init>(War.java:217)
        at weblogic.servlet.internal.WebAppServletContext.processDocroot(WebAppServletContext.java:2785)
        at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:2662)
        at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:414)
        at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:494)
        at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:418)
        at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:976)
        at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:384)

Any ideas on how to solve this issue?

Thanks in advance.

neo108
  • 5,156
  • 3
  • 27
  • 41
  • You're upgrading to java 1.6? Why? It's no longer supported (unless you have extended support from Oracle). Upgrade to 1.8. -- http://www.oracle.com/technetwork/java/eol-135779.html – Asaph Apr 14 '16 at 23:46
  • @Asaph 1.8 is not supported by Weblogic 11g and we have to use use 11g at the moment. [JRE 8 compatibility with weblogic 10.3.6 (11g)](http://stackoverflow.com/questions/22513660/jre-8-compatibility-with-weblogic-10-3-6-11g) – neo108 Apr 15 '16 at 00:00
  • right, do not use 1.8 in 10.3.x – devwebcl Apr 15 '16 at 13:28
  • have you bundled wlfullclient into your application and then deployed it ? – devwebcl Apr 15 '16 at 13:28
  • @devwebcl yes I have – neo108 Apr 18 '16 at 00:49

1 Answers1

0

The answer to this question helped me solve my problem.

One of the jar files that was used had comma separated string against the Extension-List property in the MANIFEST.MF file. Updated the jar file with the later release which did not have the comma-separated string.

Posting this solution as an answer to help anyone who encounters this problem.

Community
  • 1
  • 1
neo108
  • 5,156
  • 3
  • 27
  • 41
  • it is good to see that you solved the problem, however it is not good to bundle wlfullclient into your application because all those are libraries are already in WLS. (it is redundant) – devwebcl Apr 19 '16 at 12:53
  • Yeah I did notice that @devwebcl so I removed them from the application package. Thanks. – neo108 Apr 20 '16 at 01:12