com.sun.enterprise.deployment.backend.IASDeploymentException: No local string defined -- Inconsistent Module State 错误

本文介绍了解决 Sun App Server 在不正常关闭后重新部署应用时报出 Nolocalstringdefined--InconsistentModuleState 错误的方法。通过手动删除特定目录下的 policy 文件并重启服务器来解决问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 1.  当我不正常情况下强行关闭sun application server的时候如果再次部署出现服务器能正常启动,但是同样的项目不可以部署的时候而且报出com.sun.enterprise.deployment.backend.IASDeploymentException: No local string defined -- Inconsistent Module State 错误的时候有一种解决放案
       This has nothing to do with the ejb deployment descriptor but instead it's beacause of some policy files that Sun app Server fails to clean up.
When you deploy the applications the app server creates policy files under domain1/generated/policy/<app-name-dir>/ *.policy files. This files are deleted when you undeploy the app or replaced whenever you re-deploy the app. But seems the Sun app server does not do this right some times. So the solution is to remove generated/policy/<app-name-dir>/ *.policy files and than RESTART (important) the app serve.
如果remove不行的话,就找一个以前的备份放进去就解决了。

2.  在下面的地方察看 jsp编译后的java文件
 C:/Program Files/netbeans-4.1/SunAppServer8.1/domains/domain1/generated/jsp/j2ee-apps/anadd/AnADD-WebModule_war/org/apache/jsp/jsp/Sales/SalesEffectiveness_jsp.java
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值