More
More
文章目录
  1. > weblogic12.2.1安装
  2. > EOS Server 7.6安装
  3. > 部署包上传大小限制
  4. > jar冲突
    1. 解决方案
    2. 排查过程
  5. > 常用路径
  6. > 关于我

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:\Oracle\Middleware\Oracle_Home
  • weblogic home: D:\Oracle\Middleware\Oracle_Home\wlserver
  • domain: D:\Oracle\Middleware\user_projects\domains\base_domain
  • server: AdminServer
  • 如需修改默认端口7001,需先修改后再安装EOS,否则workspace登录存在问题

> 部署包上传大小限制

  • 修改D:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\applications\governor.war\WEB-INF_srv\config下user_config.xml
1
2
3
4
5
6
7
<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][org.gocom.components.coframe.auth.startup.AuthStartupContributionListener][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:\primeton6for3276\ide\eclipse\jre\bin\java -cp ant.jar;. FindClass com.primeton.spring.parser.SpringConfigFileParser F:\primeton6for3276\ide\eclipse
    (上述例子就是在F:\primeton6for3276\ide\eclipse目录下,搜索com.primeton.spring.parser.SpringConfigFileParser所在位置)
    结果是eos-server-spring开头的jar
  • 善用github,查到eos-server-spring的package-name

    1
    2
    3
    <groupId>bps.simbest</groupId>
    <artifactId>eos-server-spring</artifactId>
    <version>7.1.3.0</version>
  • 在weblogic.xml中添加prefer-application-packages

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\applications\default.ear\default.war
  • 应用日志:D:\Oracle\Middleware\Oracle_Home\user_projects\domains\mes_work_default_6200\logs
  • weblogic日志:D:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\AdminServer\logs
  • 服务启动:D:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain startWebLogic.cmd
  • 应用缓存:D:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\servers\AdminServer\tmp_WL_user[可删]
  • 数据库配置:D:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\config\jdbc

> 关于我

rebey.cn

打赏
手机扫一扫,支持CHE~