Tomcat Error deploying configuration descriptor...的错误处理

                              Tomcat Error deploying configuration descriptor...的错误处理

 

错误日志如下;

 Error deploying configuration descriptor jeecg.xml
 org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 60
 at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
 at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60)
 at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
 at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)
 at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1911)

catalina

解决方法在%CATALINA_HOME%/conf/web.xml 更改如下:

<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" metadata-complete="true">

 

Artifact deployment error in test1:war typically occurs when there's a problem while deploying a WAR (Web Application Archive) file to a server, such as Apache Tomcat or a similar web application container. This error usually indicates that the server is unable to complete the deployment process due to various reasons, which might include: 1. Invalid or missing dependencies: The WAR file may be dependent on other libraries that are not present in the server's classpath. 2. Configuration issues: Incorrect server configuration, like incorrect context path, servlet mapping, or security settings, can lead to deployment errors. 3. Class loading problems: If there's a conflict between classes or resource files within the WAR, it could cause issues. 4. Server resource limitations: Insufficient memory or disk space, or reaching max number of deployed applications, can prevent successful deployment. 5. Runtime exceptions: There could be a runtime issue in the application code that surfaces during deployment. To resolve this error, you should check the server logs for detailed information about the specific error, which will usually provide more context and steps to fix the issue. Here are some steps to troubleshoot: 1. **Review server logs**: Look for stack traces, error messages, or warnings that can guide you to the root cause. 2. **Check the deployment descriptor**: If you have a `web.xml` file in your WAR, verify that all configurations are correct. 3. **Maven dependencies**: Ensure that all necessary libraries are included and have compatible versions. 4. **Clean and redeploy**: Try cleaning the server's work directory or undeploying the problematic application before redeploying. 5. **Run tests locally**: If possible, deploy the application locally using a development server to isolate the issue from the production environment.
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值