ubuntu - 搭建TR069平台问题(Open ACS)

由于客户测试使用的就是 openACS,为了环境统一尝试在Ubuntu搭建相同的平台。可以根据https://www.cnblogs.com/roverq/p/18342747 步骤操作,这里记录我遇到的问题。

1、平台启动后设备无法连接

复制代码
17:08:31.700     W  CWMP - channelRead0: message = <html><head><title>JBossWeb/2.0.1.GA - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
			javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:439)
			org.jboss.ws.core.soap.SOAPMessageImpl.&lt;init&gt;(SOAPMessageImpl.java:67)
			org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:207)
			org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185)
			org.openacs.ACSServlet.processRequest(ACSServlet.java:347)
			org.openacs.ACSServlet.doPost(ACSServlet.java:609)
			javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
			javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
			org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
		  </pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.</u></p><HR size="1" noshade="noshade"><h3>JBossWeb/2.0.1.GA</h3></body></html>

这个找到了一篇帖子对应当前问题,

解决方法

复制代码
jboss-4.2.3.GA/server/default/lib/jboss-saaj.jar

拷贝到

复制代码
/jboss-4.2.3.GA/lib/endorsed/jboss-saaj.jar

对应网站

https://sourceforge.net/p/libreacs/discussion/general/thread/f8587fb8/

2、系统服务启动

配置后通过 systemctl 无法启动,重新找了方法启动。

1、创建自定义启动脚本

复制代码
sudo vi /etc/systemd/system/openacs-jboss.service

2、写入脚本内容

复制代码
[Unit]
Description=OpenACS JBoss Application Server
After=network.target
Wants=network.target

[Service]
Type=simple
# 设置环境变量,这里得改成自己的路径
Environment="JAVA_HOME=/opt/jdk1.5.0_22"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/jdk1.5.0_22/bin"
Environment="CLASSPATH=/opt/jdk1.5.0_22/lib/tools.jar"
Environment="JBOSS_HOME=/root/lichang/openacs/jboss-4.2.2.GA"

WorkingDirectory=/root/lichang/openacs/jboss-4.2.2.GA
ExecStart=/root/lichang/openacs/jboss-4.2.2.GA/bin/run.sh -b 0.0.0.0 -c default
Restart=on-failure
RestartSec=30
User=root
Group=root
LimitNOFILE=65536
LimitNPROC=4096
TimeoutStartSec=300
TimeoutStopSec=30
StandardOutput=journal
StandardError=journal
SyslogIdentifier=openacs-jboss

[Install]
WantedBy=multi-user.target

3、启动服务

  • 重新加载 systemd

    sudo systemctl daemon-reload

  • 启动服务

    sudo systemctl start openacs-jboss

  • 设置开机自启

    sudo systemctl enable openacs-jboss

  • 查看状态

    sudo systemctl status openacs-jboss

  • 查看日志

    sudo journalctl -u openacs-jboss -f

  • 停止服务

    sudo systemctl stop openacs-jboss

  • 重启服务

    sudo systemctl restart openacs-jboss

相关推荐
Lsir10110_4 小时前
【Linux】进程信号(下半)
linux·运维·服务器
liuniu08184 小时前
VMware虚拟机安装ubuntu2022
ubuntu·ros
skywalk81634 小时前
unbound dns解析出现问题,寻求解决之道
运维·服务器·dns·unbound
酉鬼女又兒4 小时前
零基础入门Linux指南:每天一个Linux命令_pwd
linux·运维·服务器
云飞云共享云桌面4 小时前
高性能图形工作站的资源如何共享给10个SolidWorks研发设计用
linux·运维·服务器·前端·网络·数据库·人工智能
skywalk81634 小时前
走近科学:unbound dns域名服务器自己本地解析出现问题,寻求解决之道
运维·服务器·dns·unbound
zl_dfq4 小时前
Linux 之 【多线程】(pthread_xxx、轻量级进程、原生线程库、线程ID、__thread、线程栈、线程与信号、线程与程序替换)
linux
choke2335 小时前
Python 基础语法精讲:数据类型、运算符与输入输出
java·linux·服务器
袁煦丞 cpolar内网穿透实验室5 小时前
远程调试内网 Kafka 不再求运维!cpolar 内网穿透实验室第 791 个成功挑战
运维·分布式·kafka·远程工作·内网穿透·cpolar
AZ996ZA5 小时前
自学linux的第二十一天【DHCP 服务从入门到实战】
linux·运维·服务器·php