WebLogic Common Errors and workarounds

Source: Internet
Author: User
Tags xmlns

Special considerations, it is best to use and run WebLogic version of the JDK under Eclipse to compile, or there will be inconsistent file access version of the bug.

1) The console reported the WebLogic Server did not start up properly.
Java.io.InvalidClassException:javax.management.MBeanAttributeInfo; Local class Incompatible:stream Classdesc serialversionuid = 7043855487133450673, local class Serialversionuid = 86447048 19898565848
error Causes and solutions : Mbeanattributeinfo's SERIALVERSIONUID version control ID is not the same, stating that the use of this used bean has been modified, it is obviously the wrong version Modify the Startweblogic.cmd file, set java_home=d:/bea/jdk141_05 to point to WebLogic's own JDK, restart startweblogic.cmd problem disappears.

2) Error Report deployment Descriptor "Web. Xml" is Malform
Ed. Check Against the Dtd:org.xml.sax.saxparseexception:cvc-elt.1:cannot find

error reason and solution : Resolve the problem of Web. XML, modify the Open_cms/webapp/web-inf/web.xml file; at the top of the file, add the following:

<! DOCTYPE Web-app Public "-//sun Microsystems, INC.//DTD Web Application 2.3//en"
"Http://java.sun.com/dtd/web-app_2_3.dtd" >

Deploy WebLogic to MyEclipse below, start WebLogic Error: Deployment descriptor "web. xml" is malformed. Check against the Dtd:org.xml.sax.saxparseexception:cvc-elt.1:cannot find the declaration of element ' Web-app '.

This is an error with the configuration of Web. XML, which cannot be used previously:

<?xml version= "1.0" encoding= "UTF-8"?>
<web-app version= "2.4" xmlns= "HTTP://JAVA.SUN.COM/XML/NS/J2EE"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
Xsi:schemalocation= "Http://java.sun.com/xml/ns/j2ee
Http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd ">

</web-app> This format needs to be replaced by:

<?xml version= "1.0" encoding= "UTF-8"?>
<! DOCTYPE Web-app Public "-//sun Microsystems, INC.//DTD Web Application 2.3//en" "Http://java.sun.com/dtd/web-app_2_3. DTD ">
<web-app>

</web-app>

This format, problem solving:

The restart error disappears.

3) Error is deployment Descriptor "/web-inf/
Web. xml "is malformed. Check against the dtd:the content of element type "T
AG "must match" (Name,tag-class,tei-class?,body-content?,display-name?,small-ico
N?,large-icon?,description?,variable*,attribute*,example?) ". (Line, Column 11
) .>

cause of error and resolution : Because WEBLOGIC8 is parsing xml file, the content format of XML file is very strict; must follow XML format requirements

And order, so must reorganize its content, must be strict attention to order, such as <servlet> can not be placed in the back of <servlet-mapping>.

4) Error java.lang.SecurityException:Prohibited package Name:java.lang

error reason and solution : Access Package visual method or variable error; This error is rare, has not been trying to understand why, and later only to use the direct reference jar file to solve the problem;

i) run the Ant Jar command with the Build.xml file from OpenCms, generate Opencms.jar and Webdav.jar two files

II) in Startweblogic.cmd add the following to introduce the above 2 jar files

Set Classpath=%classpath%;%o Pen_cms%/build/opencms.jar
Set Classpath=%classpath%;%o Pen_cms%/build/webdav.jar

You can refer to the "Perspective java--anti-compilation, patching and Reverse engineering" $4.2 chapter of the content, if you find a better solution also please write to inform.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.