gpt4 book ai didi

java - 无法启动 jasperserver。源服务器未找到目标资源的当前表示

转载 作者:行者123 更新时间:2023-12-01 19:00:57 28 4
gpt4 key购买 nike

我已经安装了 Jasper 服务器,默认值捆绑了 tomcat 和 pgsql。当我启动服务时,tomcat 启动了,pgsql 也启动了。但几秒钟后,jasper tomcat停了下来。 enter image description here当我检查控制台时
catalina.out

08-Jan-2020 14:26:18.287 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.5.30
08-Jan-2020 14:26:18.290 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Apr 3 2018 20:04:09 UTC
08-Jan-2020 14:26:18.290 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.30.0
08-Jan-2020 14:26:18.290 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
08-Jan-2020 14:26:18.290 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.10.0-1062.9.1.el7.x86_64
08-Jan-2020 14:26:18.291 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
08-Jan-2020 14:26:18.291 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /opt/jasperreports-server-cp-7.1.0/java
08-Jan-2020 14:26:18.291 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_151-b12
08-Jan-2020 14:26:18.291 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
08-Jan-2020 14:26:18.291 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /opt/jasperreports-server-cp-7.1.0/apache-tomcat
08-Jan-2020 14:26:18.291 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /opt/jasperreports-server-cp-7.1.0/apache-tomcat
08-Jan-2020 14:26:18.291 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/opt/jasperreports-server-cp-7.1.0/apache-tomcat/conf/logging.properties
08-Jan-2020 14:26:18.291 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
08-Jan-2020 14:26:18.291 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms1024m
08-Jan-2020 14:26:18.291 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx2048m
08-Jan-2020 14:26:18.291 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xss2m
08-Jan-2020 14:26:18.291 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djs.license.directory=/opt/jasperreports-server-cp-7.1.0
08-Jan-2020 14:26:18.292 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
08-Jan-2020 14:26:18.292 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
08-Jan-2020 14:26:18.292 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
08-Jan-2020 14:26:18.292 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
08-Jan-2020 14:26:18.292 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/opt/jasperreports-server-cp-7.1.0/apache-tomcat
08-Jan-2020 14:26:18.292 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/opt/jasperreports-server-cp-7.1.0/apache-tomcat
08-Jan-2020 14:26:18.292 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/opt/jasperreports-server-cp-7.1.0/apache-tomcat/temp
08-Jan-2020 14:26:18.292 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/opt/jasperreports-server-cp-7.1.0/common/lib:/opt/jasperreports-server-cp-7.1.0/postgresql/lib:/opt/jasperreports-server-cp-7.1.0/common/lib::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
08-Jan-2020 14:26:18.567 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
08-Jan-2020 14:26:18.574 SEVERE [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[org.apache.coyote.http11.Http11Protocol-8080]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[org.apache.coyote.http11.Http11Protocol-8080]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at org.apache.catalina.startup.Catalina.load(Catalina.java:632)
at org.apache.catalina.startup.Catalina.load(Catalina.java:655)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:995)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 12 more
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:210)

请帮忙。我该如何修复它?

最佳答案

您正在尝试在已使用的端口上启动服务器,请尝试更改服务器端口,如果您使用的是独立的 tomcat 服务器,请执行以下操作。

  1. 在您的 tomcat 安装中将会有一个 conf 文件夹
  2. 打开 server.xml 文件
  3. 搜索以连接器端口开头的行
  4. 默认端口应为 8080,请将其更改为一些空闲端口,例如 8081
  5. 重启tomcat服务器

如果您使用的是 spring 的内置服务器,那么您可以在 application.properties 文件中更改服务器端口,如下所示。

server.port=9090//任何空闲端口

关于java - 无法启动 jasperserver。源服务器未找到目标资源的当前表示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59640770/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com