Deployment Issues On Weblogic Server

When we deploy web applications on the weblogic server, there are some common errors seen on the admin console while activating changes. These errors are usually not resolved even after restart of the server. Few of the issues are as below:

1) <Error> <Console> <BEA-240003> <Console encountered the following error weblogic.management.DeploymentException: [Deployer:149189]Attempt to operate ‘distribute’ on null BasicDeploymentMBean for deployment portalTramitsServeisEAR. Operation can not be performed until server is restarted.

– This may be resolved by running statd() and lockd() processes on every NFS client that accesses a remote NFS volume.

– If different servers (sharing the same domain root) are started with different user Ids of same group, set the correct “umask” for the server process so that the file created by one server can be opened for read/write by the other server without security exceptions. Eg: “umask 002”.

Workaround for this issue:
1.  Click on Lock and Edit.
2.  Go to deployments.
3.  Click to install the web-app.
4.  After installing (any staging mode), click on Activate changes. At this time, you will see the error as mentioned above.
5.  Now click on Activate Changes again.
6.  Click on Lock and Edit.
7.  Click on Undo All Changes.
8.  Click on Lock and Edit and install the app again.
9.  This time it succeeds.

2)  javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:108)
at weblogic.management.provider.internal.ConfigReader.convert(ConfigReader.java:100)
at weblogic.management.provider.internal.ConfigReader.<init>(ConfigReader.java:71)
at weblogic.management.provider.internal.ConfigReader.<init>(ConfigReader.java:65)
at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.handleConfigTreeLoad(RuntimeAccessDeploymentReceiverService.java:961)
at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.updateDeploymentContext(RuntimeAccessDeploymentReceiverService.java:581)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doUpdateDeploymentContextCallback(DeploymentReceiverCallbackDeliverer.java:133)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.updateDeploymentContext(DeploymentReceiverCallbackDeliverer.java:27)

– When the application is already deployed on the server, any change made through the console throws this error. Suppose the application is deployed on the managed servers, when the servers are running and the application is active, the changes cannot be activated. The workaround for this is to shutdown the managed servers and make any changes. But this is not acceptable in the production environment.

Solution :
1- Undeploy the application. Shutdown the servers.

2- Add xercesImpl.jar, xalan.jar, serializer.jar, xml-apis.jar and xsltc.jar libraries in classpath.

3- In the application, place the file xalan.jar, xercesImpl.jar and xml-apis.jar in the war file i.e web-inf/lib directory, then set prefer-web-inf-classes to true in weblogic.xml as:
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>

4- Set the following start-up flags in the JAVA_OPTIONS:
-Djavax.xml.parsers.SAXParserFactory=weblogic.xml.jaxp.RegistrySAXParserFactory
-Djavax.xml.parsers.DocumentBuilderFactory=weblogic.xml.jaxp.RegistryDocumentBuilderFactory
-Djavax.xml.transform.TransformerFactory=weblogic.xml.jaxp.RegistrySAXTransformerFactory
– Restart the servers, deploy the application again, and check if the issue still persists.

 

<BEA-290071> <Deployment service servlet failed on parsing the request or uploading the file>

Use the following java option

-Dweblogic.deploy.UploadLargeFile=true

Unable to access the selected application.
Exception in AppMerge flows’ progression
Exception in AppMerge flows’ progression
VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a:

You need to update your web.xml namespace declaration.

http://docs.oracle.com/cd/E21764_01/web.1111/e13712/web_xml.htm#i1039990

You get the following exception when jsp size is huge.

too large for try statement

Use the following JVM Option

-Dweblogic.jsp.noOptimization

Getting following error at the time of deployment.

Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger

Apply Patch 16038283 and excluding classes which are not used as beans by editing the beans.xml file.
If the issue is still not resolve please get in touch with Oracle Support.

Add the following JVM option on the server on which you are doing the deployment and restart.

-Xverify:none

Stack overflow error while invoking jspx page WLS 10.3.6

java.lang.StackOverflowError exception occurs .
The related Java Stack is :
java.lang.StackOverflowError
at weblogic.servlet.internal.ServletResponseImpl.addHeader(ServletResponseImpl.java:556)
at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:168)

You need to modify the web.xml as below.

javax.faces.FACELETS_VIEW_MAPPINGS *.jspx


Exception in thread “AWT-EventQueue-0” sun.awt.X11.XException: Cannot write XdndAware property
at sun.awt.X11.XDnDDropTargetProtocol.registerDropTarget(XDnDDropTargetProtocol.java:79)

This is due to a JDK bug, add the following jvm option in config.sh

-DsuppressSwingDropSupport=true

java.lang.NullPointerException at com.bea.console.actions.jms.message.JMSMessageDetailAction.execute(JMSMessageD etailAction.java:143)

This issue has been addressed in defect 9889164.

weblogic.servlet.jsp.CompilationException: Failed to compile JSP /index.jsp
The type new Comparator(){} must implement the inherited abstract method Comparator.thenComparing(Function, Comparator)

Issue is present on WLS 12.1.3 and JDK 8.
You will need to download the patch for bug Bug 18729264.

Latest Comments

  1. folin November 30, 2010
    • divya November 30, 2010
  2. chandra December 3, 2010
    • divya December 4, 2010
  3. Rajeswari December 9, 2010
    • divya December 12, 2010
  4. Saranya December 15, 2010
  5. divya December 15, 2010
  6. Lynn Dueck December 15, 2010
  7. divya December 17, 2010
  8. Lynn Dueck December 20, 2010
  9. Lynn Dueck December 20, 2010
  10. Shawn January 11, 2011
    • divya January 12, 2011
  11. srinivas January 18, 2011
    • divya February 8, 2011
  12. srinivas January 18, 2011
  13. Shankar January 20, 2011
  14. Murali.T January 27, 2011
  15. Lokesh April 28, 2011
    • divya May 18, 2011
  16. Kedar May 25, 2011
    • divya May 31, 2011
  17. Vivek July 7, 2011
  18. Shiva Shankar July 9, 2011
  19. vipin October 5, 2011
  20. Suresh October 14, 2011
    • Nithin November 23, 2015
  21. charan November 14, 2011
    • Administrator November 29, 2011
  22. charan November 14, 2011
    • Administrator December 16, 2011
  23. Deepashri March 8, 2012
    • sam November 3, 2015
  24. sivanagireddy March 26, 2012
  25. sushmitha May 24, 2012
    • Administrator May 28, 2012
  26. sasi kanth July 13, 2012
  27. srinu July 23, 2012
  28. sangamesh October 5, 2012
  29. prasad November 19, 2012
  30. prasad November 19, 2012
  31. prasad November 19, 2012
  32. prasad November 19, 2012
  33. jenny February 4, 2013
  34. S16 February 4, 2013
  35. charan May 10, 2013
    • Administrator May 17, 2013
  36. siddharth June 20, 2013
    • Administrator January 16, 2014
      • ravisundriyal@gmail.com February 20, 2015
        • Administrator March 17, 2015
  37. JWALA July 22, 2013
    • Administrator July 24, 2013
    • ravindra September 14, 2013
  38. JWALA July 26, 2013
  39. Gunjan August 1, 2013
    • Administrator September 9, 2013
  40. Ajit October 14, 2013
    • Administrator October 15, 2013
  41. Sandeep October 31, 2013
    • Administrator November 1, 2013
  42. srao January 15, 2014
    • Administrator January 15, 2014
      • srao January 17, 2014
      • Audrius Idzelis May 2, 2014
  43. Amrita July 9, 2014
    • Administrator July 10, 2014
      • Amrita July 10, 2014
        • Administrator August 5, 2014
        • Divya August 5, 2014
  44. kasi August 8, 2014
    • Administrator September 8, 2014
  45. divya September 9, 2014
  46. ramana reddy December 8, 2014
    • Administrator December 9, 2014
  47. arun March 19, 2015
    • Administrator March 30, 2015
  48. Raghavender Anthwar June 12, 2015
  49. syed November 25, 2015
    • Administrator November 28, 2015
    • Divya February 11, 2016
  50. Gopi Krishna February 13, 2016

Leave a Reply