- 浏览: 2556136 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Watch the Port Using and deploy packages in JBOSS
I stayed in Ubuntu System these days.
One problem accured.
My 80 port is using when I tryed to start my jboss server. The error message is:
Server port In Use 80-Http
So I tryed to figure out which service/software is using this port.
First I install a tool
>sodu apt-get install nmap
Executing the check command
>nmap localhost
The result is as follow:
Starting Nmap 5.21 ( http://nmap.org ) at 2011-03-15 17:39 CST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00037s latency).
Hostname localhost resolves to 2 IPs. Only scanned 127.0.0.1
rDNS record for 127.0.0.1: localhost.localdomain
Not shown: 994 closed ports
PORT STATE SERVICE
80/tcp open http
631/tcp open ipp
1723/tcp open pptp
3306/tcp open mysql
7070/tcp open realserver
45100/tcp open unknown
So, it is http, it is apache2.
>sudo /etc/init.d/apache2 stop
Still, I have problem with these messages:
Problem One:
17:51:50,596 ERROR [Http11Protocol] Error initializing endpoint
java.net.BindException: Permission denied /0.0.0.0:80
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:504)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1029)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:683)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:821)
at org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatService.java:313)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
at org.jboss.system.ServiceMBeanSupport.pojoStart(ServiceMBeanSupport.java:216)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Solution:
It's a fundamental Linux/Unix design choice. All ports below 1024 can only be bound by a process with "root" permissions.
So I changed my port to 8080.
Problem Two:
18:07:32,960 ERROR [BasicLazyInitializer] Javassist Enhancement failed: net.tss.app.service.store.ejb.entity.Store
java.lang.RuntimeException: java.lang.IllegalArgumentException: Can not set static javassist.util.proxy.MethodFilter field net.tss.app.service.store.ejb.entity.Store_$$_javassist_0._method_filter to org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer$1
at javassist.util.proxy.ProxyFactory.setField(ProxyFactory.java:358)
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:341)
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:314)
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:273)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162)
at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
Solution:
That is my project problem, I have package conflicks. So I remove javassist and ongl in xwork-core.jar
Problem Three:
17:53:17,002 WARN [JBossManagedConnectionPool] Unable to fill pool
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 1,645 milliseconds ago. The last packet sent successfully to the server was 1,645 milliseconds ago.)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.fillToMin(InternalManagedConnectionPool.java:541)
at org.jboss.resource.connectionmanager.PoolFiller.run(PoolFiller.java:74)
at java.lang.Thread.run(Thread.java:636)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
Solution:
That is connection problem. We restart the jboss server. It works fine.
I stayed in Ubuntu System these days.
One problem accured.
My 80 port is using when I tryed to start my jboss server. The error message is:
Server port In Use 80-Http
So I tryed to figure out which service/software is using this port.
First I install a tool
>sodu apt-get install nmap
Executing the check command
>nmap localhost
The result is as follow:
Starting Nmap 5.21 ( http://nmap.org ) at 2011-03-15 17:39 CST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00037s latency).
Hostname localhost resolves to 2 IPs. Only scanned 127.0.0.1
rDNS record for 127.0.0.1: localhost.localdomain
Not shown: 994 closed ports
PORT STATE SERVICE
80/tcp open http
631/tcp open ipp
1723/tcp open pptp
3306/tcp open mysql
7070/tcp open realserver
45100/tcp open unknown
So, it is http, it is apache2.
>sudo /etc/init.d/apache2 stop
Still, I have problem with these messages:
Problem One:
17:51:50,596 ERROR [Http11Protocol] Error initializing endpoint
java.net.BindException: Permission denied /0.0.0.0:80
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:504)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1029)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:683)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:821)
at org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatService.java:313)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
at org.jboss.system.ServiceMBeanSupport.pojoStart(ServiceMBeanSupport.java:216)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Solution:
It's a fundamental Linux/Unix design choice. All ports below 1024 can only be bound by a process with "root" permissions.
So I changed my port to 8080.
Problem Two:
18:07:32,960 ERROR [BasicLazyInitializer] Javassist Enhancement failed: net.tss.app.service.store.ejb.entity.Store
java.lang.RuntimeException: java.lang.IllegalArgumentException: Can not set static javassist.util.proxy.MethodFilter field net.tss.app.service.store.ejb.entity.Store_$$_javassist_0._method_filter to org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer$1
at javassist.util.proxy.ProxyFactory.setField(ProxyFactory.java:358)
at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:341)
at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:314)
at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:273)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:162)
at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:183)
Solution:
That is my project problem, I have package conflicks. So I remove javassist and ongl in xwork-core.jar
Problem Three:
17:53:17,002 WARN [JBossManagedConnectionPool] Unable to fill pool
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 1,645 milliseconds ago. The last packet sent successfully to the server was 1,645 milliseconds ago.)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:633)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.fillToMin(InternalManagedConnectionPool.java:541)
at org.jboss.resource.connectionmanager.PoolFiller.run(PoolFiller.java:74)
at java.lang.Thread.run(Thread.java:636)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
Solution:
That is connection problem. We restart the jboss server. It works fine.
发表评论
-
Update Site will come soon
2021-06-02 04:10 1683I am still keep notes my tech n ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 433Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 440Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 378Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 460VPN Server 2020(2)Docker on Cen ... -
Nginx Deal with OPTIONS in HTTP Protocol
2020-02-15 01:33 362Nginx Deal with OPTIONS in HTTP ... -
PDF to HTML 2020(1)pdftohtml Linux tool or PDFBox
2020-01-29 07:37 421PDF to HTML 2020(1)pdftohtml Li ... -
Elasticsearch Cluster 2019(2)Kibana Issue or Upgrade
2020-01-12 03:25 725Elasticsearch Cluster 2019(2)Ki ... -
Spark Streaming 2020(1)Investigation
2020-01-08 07:19 299Spark Streaming 2020(1)Investig ... -
Hadoop Docker 2019 Version 3.2.1
2019-12-10 07:39 300Hadoop Docker 2019 Version 3.2. ... -
MongoDB 2019(3)Security and Auth
2019-11-16 06:48 246MongoDB 2019(3)Security and Aut ... -
MongoDB 2019(1)Install 4.2.1 Single and Cluster
2019-11-11 05:07 297MongoDB 2019(1) Follow this ht ... -
Monitor Tool 2019(1)Monit Installation and Usage
2019-10-17 08:22 329Monitor Tool 2019(1)Monit Insta ... -
Ansible 2019(1)Introduction and Installation on Ubuntu and CentOS
2019-10-12 06:15 318Ansible 2019(1)Introduction and ... -
Timezone and Time on All Servers and Docker Containers
2019-10-10 11:18 341Timezone and Time on All Server ... -
Kafka Cluster 2019(6) 3 Nodes Cluster on CentOS7
2019-10-05 23:28 291Kafka Cluster 2019(6) 3 Nodes C ... -
K8S Helm(1)Understand YAML and Kubectl Pod and Deployment
2019-10-01 01:21 334K8S Helm(1)Understand YAML and ... -
Rancher and k8s 2019(5)Private Registry
2019-09-27 03:25 372Rancher and k8s 2019(5)Private ... -
Jenkins 2019 Cluster(1)Version 2.194
2019-09-12 02:53 451Jenkins 2019 Cluster(1)Version ... -
Redis Cluster 2019(3)Redis Cluster on CentOS
2019-08-17 04:07 376Redis Cluster 2019(3)Redis Clus ...
相关推荐
or configure the technology in the environment in which you wish to deploy it. If your deployment environment of choice is the JBoss Application Server, then this book is for you because it covers ...
■ How Docker can benefit you: I explain the benefits of creating and run- ning applications in containers, instead of installing software packages (in formats such as RPM or Deb) and running ...
Docker Containers Build and Deploy with Kubernetes, Flannel, Cockpit, and Atomic 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
Apple Watch App Development introduces you to the architecture and possibilities of the Apple Watch platform, as well as an in-depth look at how to work with Xcode playgrounds. Benefit from a rapid ...
Release It! - Design and Deploy Production-Ready Software 2nd,Release It! Design and Deploy Production-Ready Software
ASP.NET 3.5 brings the power of Visual Studio® 2008 along with the multitude of language improvements in C# 2008 and Visual Basic® 2008 as well as powerful new technology called LINQ, together with ...
Design and Deploy Production Ready Software》的知识点解析 #### 一、书籍概述 《Pragmatic Bookshelf - Release It! Design and Deploy Production Ready Software》是一本专注于帮助软件开发者设计和部署生产...
Utilize various algorithms using the R programming language and its packages Use best practices for experimental design and variable selection Practice the methodology to approach and effectively ...
deploy/jbossweb-tomcat55.sar/server.xml prefix="access_log." suffix=".log" pattern="%h %t %r %s %D" directory="${jboss.server.home.dir}/../output/logs" resolveHosts="false" /> ...
Build and deploy applications on the Photon and Electron using the Web-based IDE Setup a local cloud server to interact with Particle Photon and Electron Connect various components and sensors to ...
jboss服务器启动,bin文件夹下的run.bat脚本, mvn clean install mvn jetty:run
- server/default/deploy目录:这个目录是JBoss的部署目录,可以放置EJB、WAR、EAR文件,甚至是自定义服务。当你将应用程序的部署单元放入此目录时,JBoss会自动检测并进行部署。 【启动JBoss】 要启动JBoss,只需...
在部署 Jboss 项目时,需要将 war 文件解压到 Jboss 服务器的部署目录下,例如 D:\jboss-5.1.0.GA\server\default\deploy 下。然后,需要配置 Jboss 服务器的配置文件,例如 server.xml、oracle-ds.xml 等文件。 五...
L300-2A-Configure and Deploy Service Delivery and Automation