weblogic12.2.1+EOS7.6部署记

> weblogic12.2.1安装

  • java -jar fmw_12.2.1.0.0_wls.jar时需要jdk1.7
  • 安装后,配置向导选jdk1.8且版本152(以上)

> EOS Server 7.6安装

  • weblogic需要处于启动状态!
  • bea home:D:OracleMiddlewareOracle_Home
  • weblogic home: D:OracleMiddlewareOracle_Homewlserver
  • domain: D:OracleMiddlewareuser_projectsdomainsbase_domain
  • server: AdminServer
  • 如需修改默认端口7001,需先修改后再安装EOS,否则workspace登录存在问题

> 部署包上传大小限制

  • 修改D:OracleMiddlewareOracle_Homeuser_projectsdomainsbase_domainapplicationsgovernor.warWEB-INF_srvconfig下user_config.xml

    upload
    184857600
    10240
    
    exe,java,jsp,html,htm,class,jar

> jar冲突

解决方案

排查过程

  • 查看应用日志contribution.log得知:
[2019-05-24
16:26:52,178]ERROR[Line:166]
loadAuthService[IAuthManagerService=org.gocom.components.coframe.auth.DefaultAuthManagerService]
error. java.lang.LinkageError: loader constraint violation: when
resolving interface method
"javax.xml.stream.XMLStreamReader.getName()Ljavax/xml/namespace/QName;"
the class loader (instance of
weblogic/utils/classloaders/ChangeAwareClassLoader) of the current
class, com/primeton/spring/parser/SpringConfigFileParser, and the
class loader (instance of ) for the method's defining
class, javax/xml/stream/XMLStreamReader, have different Class objects
for the type javax/xml/namespace/QName used in the signature
  • 通过findClass工具查找com/primeton/spring/parser/SpringConfigFileParser对应jar,出现在普元的哪个jar中:

F:primeton6for3276ideeclipsejrebinjava -cp ant.jar;. FindClass com.primeton.spring.parser.SpringConfigFileParser F:primeton6for3276ideeclipse
(上述例子就是在F:primeton6for3276ideeclipse目录下,搜索com.primeton.spring.parser.SpringConfigFileParser所在位置)
结果是eos-server-spring开头的jar

  • 善用github,查到eos-server-spring的package-name
bps.simbest
eos-server-spring
7.1.3.0
 
 
  
    false
    
        bps.simbest.*
    
 
    
      bps.simbest.*
    
  

> 常用路径

  • 应用代码:D:OracleMiddlewareOracle_Homeuser_projectsdomainsbase_domainapplicationsdefault.eardefault.war
  • 应用日志:D:OracleMiddlewareOracle_Homeuser_projectsdomainsmes_work_default_6200logs
  • weblogic日志:D:OracleMiddlewareOracle_Homeuser_projectsdomainsbase_domainserversAdminServerlogs
  • 服务启动:D:OracleMiddlewareOracle_Homeuser_projectsdomainsbase_domain startWebLogic.cmd
  • 应用缓存:D:OracleMiddlewareOracle_Homeuser_projectsdomainsbase_domainserversAdminServertmp_WL_user[可删]
  • 数据库配置:D:OracleMiddlewareOracle_Homeuser_projectsdomainsbase_domainconfigjdbc

> 关于我

rebey.cn

你可能感兴趣的:(weblogic)