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
<group name="FileUpload">
    <configValue key="TempDir">upload</configValue>
    <configValue key="MaxSize">184857600</configValue>
    <configValue key="InMemorySize">10240</configValue>
    <!--files with specified ext names are not accespted when uploading  -->
    <configValue key="Exclude">exe,java,jsp,html,htm,class,jar</configValue>
</group>

> 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 <bootloader>) 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
<groupId>bps.simbest</groupId>
<artifactId>eos-server-spring</artifactId>
<version>7.1.3.0</version>
<?xml version="1.0" encoding="UTF-8"?> 
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" 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 
http://xmlns.oracle.com/weblogic/weblogic-web-app 
http://xmlns.oracle.com/weblogic/weblogic-web-app/1.8/weblogic-web-app.xsd"> 
  <container-descriptor>
    <prefer-web-inf-classes>false</prefer-web-inf-classes>
    <prefer-application-packages>
        <package-name>bps.simbest.*</package-name>
    </prefer-application-packages>
 
    <prefer-application-resources>
      <resource-name>bps.simbest.*</resource-name>
    </prefer-application-resources>
  </container-descriptor>
</weblogic-web-app>

> 常用路径

  • 应用代码: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

阅读 680

推荐阅读
JAVA WEB
用户专栏

java web开发之路

13 人关注
34 篇文章
专栏主页