找文章 / 找答案
  • 发帖数5
  • 粉丝1

此人很懒,什么也没有留下

精选问答 更多内容

[报错信息处理] 安装Yonghong X+Viewer错误

yhdata_Sec7ssv1青铜一 显示全部楼层 发表于 2022-9-30 09:29:19 |阅读模式 打印 上一主题 下一主题
20
未解决
找不到文件
Using CATALINA_BASE:   "C:\install\YonghongXViewer\XViewer\tomcat"
Using CATALINA_HOME:   "C:\install\YonghongXViewer\XViewer\tomcat"
Using CATALINA_TMPDIR: "C:\install\YonghongXViewer\XViewer\tomcat\temp"
Using JRE_HOME:        "C:\install\java\jdk1.8.0_202"
Using CLASSPATH:       ";..\webapps\bi\WEB-INF\classes;;C:\install\YonghongXViewer\XViewer\Yonghong\product\api.jar;C:\install\YonghongXViewer\XViewer\Yonghong\product\autoNavi.jar;C:\install\YonghongXViewer\XViewer\Yonghong\product\baidu.jar;C:\install\YonghongXViewer\XViewer\Yonghong\product\base.jar;C:\install\YonghongXViewer\XViewer\Yonghong\product\product.jar;C:\install\YonghongXViewer\XViewer\Yonghong\product\thirds.jar;C:\install\YonghongXViewer\XViewer\Yonghong\lib\mongo-java-driver-3.11.0.jar;..\lib\servlet-api.jar;;C:\install\YonghongXViewer\XViewer\tomcat\bin\bootstrap.jar;C:\install\YonghongXViewer\XViewer\tomcat\bin\tomcat-juli.jar"
Using CATALINA_OPTS:   "-Xmx3959m  -Xms3959m  -XX:MetaspaceSize=256m -XX:G1HeapRegionSize=32m -XX:InitiatingHeapOccupancyPercent=35 -XX:G1ReservePercent=15 -XX:+ParallelRefProcEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -Xlog:gc*:file=../logs/jvm.log:time:filecount=16 -Djava.awt.headless=true --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/jdk.internal.ref=ALL-UNNAMED -Djava.awt.headless=false -XX:-OmitStackTraceInFastThrow"
Unrecognized option: -Xlog:gc*:file=../logs/jvm.log:time:filecount=16
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

我的Java环境搭建好了。已经可以正常运行Java代码。安装Yonghong X+Viewer时也按安装教程选择C:\install\java\jdk1.8.0_202的安装路径。但是还时报了这个错。有谁知道什么原因

回复

使用道具 举报

精彩评论11

lwaaa白银三 显示全部楼层 发表于 2022-9-30 09:30:07
用管理员身份运行试试
回复

使用道具 举报

0xRichard钻石一 显示全部楼层 发表于 2022-9-30 09:31:56
安装一个jdk11,修改一下tomcat启动依赖的jdk和jre路径,然后重启
回复

使用道具 举报

yhdata_Sec7ssv1青铜一 显示全部楼层 发表于 2022-9-30 09:40:22
richard_y 发表于 2022-9-30 09:31
安装一个jdk11,修改一下tomcat启动依赖的jdk和jre路径,然后重启

能说下为啥吗?是安装的时候选择jdk路径那里修改吗?还是不需要重新安装直接有配置文件可以修改?
回复

使用道具 举报

0xRichard钻石一 显示全部楼层 发表于 2022-9-30 09:46:33
yhdata_Sec7ssv1 发表于 2022-9-30 09:40
能说下为啥吗?是安装的时候选择jdk路径那里修改吗?还是不需要重新安装直接有配置文件可以修改? ...

如图.png
如图
回复

使用道具 举报

yhdata_Sec7ssv1青铜一 显示全部楼层 发表于 2022-10-11 08:50:00

安装jdk11后,http://localhost:8941/bi/Viewer  这个一直打不开显示白屏页面。


如下是错误提示:

C:\install\YonghongXViewer\Yonghong Desktop\tomcat\bin>catalina.bat run
找不到文件
Using CATALINA_BASE:   "C:\install\YonghongXViewer\Yonghong Desktop\tomcat"
Using CATALINA_HOME:   "C:\install\YonghongXViewer\Yonghong Desktop\tomcat"
Using CATALINA_TMPDIR: "C:\install\YonghongXViewer\Yonghong Desktop\tomcat\temp"
Using JRE_HOME:        "C:\install\java"
Using CLASSPATH:       ";..\webapps\bi\WEB-INF\classes;;C:\install\YonghongXViewer\Yonghong Desktop\Yonghong\product\api.jar;C:\install\YonghongXViewer\Yonghong Desktop\Yonghong\product\autoNavi.jar;C:\install\YonghongXViewer\Yonghong Desktop\Yonghong\product\baidu.jar;C:\install\YonghongXViewer\Yonghong Desktop\Yonghong\product\base.jar;C:\install\YonghongXViewer\Yonghong Desktop\Yonghong\product\product.jar;C:\install\YonghongXViewer\Yonghong Desktop\Yonghong\product\thirds.jar;C:\install\YonghongXViewer\Yonghong Desktop\Yonghong\lib\mongo-java-driver-3.11.0.jar;..\lib\servlet-api.jar;;C:\install\YonghongXViewer\Yonghong Desktop\tomcat\bin\bootstrap.jar;C:\install\YonghongXViewer\Yonghong Desktop\tomcat\bin\tomcat-juli.jar"
Using CATALINA_OPTS:   "-Xmx1024m  -Xms1024m  -XX:MetaspaceSize=256m -XX:G1HeapRegionSize=32m -XX:InitiatingHeapOccupancyPercent=35 -XX:G1ReservePercent=15 -XX:+ParallelRefProcEnabled -XX:SoftRefLRUPolicyMSPerMB=0 -Xlog:gc*:file=../logs/jvm.log:time:filecount=16 -Djava.awt.headless=true --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/jdk.internal.ref=ALL-UNNAMED -Djava.awt.headless=false -XX:-OmitStackTraceInFastThrow"
NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
11-Oct-2022 08:43:45.910 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server.服务器版本: Apache Tomcat/9.0.65
11-Oct-2022 08:43:45.914 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器构建:        Jul 14 2022 12:28:53 UTC
11-Oct-2022 08:43:45.914 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 服务器版本号:      9.0.65.0
11-Oct-2022 08:43:45.915 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 操作系统名称:      Windows 10
11-Oct-2022 08:43:45.915 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS.版本:           10.0
11-Oct-2022 08:43:45.915 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 架构:              amd64
11-Oct-2022 08:43:45.916 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java 环境变量:     C:\install\java
11-Oct-2022 08:43:45.916 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java虚拟机版本:    11.0.16.1+1-LTS-1
11-Oct-2022 08:43:45.919 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM.供应商:        Oracle Corporation
11-Oct-2022 08:43:45.919 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:     C:\install\YonghongXViewer\Yonghong Desktop\tomcat
11-Oct-2022 08:43:45.920 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:     C:\install\YonghongXViewer\Yonghong Desktop\tomcat
11-Oct-2022 08:43:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-opens=java.base/java.lang=ALL-UNNAMED
11-Oct-2022 08:43:45.928 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-opens=java.base/java.io=ALL-UNNAMED
11-Oct-2022 08:43:45.929 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-opens=java.base/java.util=ALL-UNNAMED
11-Oct-2022 08:43:45.929 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
11-Oct-2022 08:43:45.930 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
11-Oct-2022 08:43:45.930 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.util.logging.config.file=C:\install\YonghongXViewer\Yonghong Desktop\tomcat\conf\logging.properties
11-Oct-2022 08:43:45.931 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
11-Oct-2022 08:43:45.931 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
11-Oct-2022 08:43:45.931 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
11-Oct-2022 08:43:45.931 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djdk.tls.ephemeralDHKeySize=2048
11-Oct-2022 08:43:45.931 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
11-Oct-2022 08:43:45.933 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Xmx1024m
11-Oct-2022 08:43:45.939 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Xms1024m
11-Oct-2022 08:43:45.939 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:MetaspaceSize=256m
11-Oct-2022 08:43:45.940 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:G1HeapRegionSize=32m
11-Oct-2022 08:43:45.940 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:InitiatingHeapOccupancyPercent=35
11-Oct-2022 08:43:45.941 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:G1ReservePercent=15
11-Oct-2022 08:43:45.941 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:+ParallelRefProcEnabled
11-Oct-2022 08:43:45.941 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:SoftRefLRUPolicyMSPerMB=0
11-Oct-2022 08:43:45.941 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Xlog:gc*:file=../logs/jvm.log:time:filecount=16
11-Oct-2022 08:43:45.942 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.awt.headless=true
11-Oct-2022 08:43:45.942 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED
11-Oct-2022 08:43:45.943 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED
11-Oct-2022 08:43:45.943 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.awt.headless=false
11-Oct-2022 08:43:45.943 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -XX:-OmitStackTraceInFastThrow
11-Oct-2022 08:43:45.944 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dignore.endorsed.dirs=
11-Oct-2022 08:43:45.944 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dcatalina.base=C:\install\YonghongXViewer\Yonghong Desktop\tomcat
11-Oct-2022 08:43:45.944 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Dcatalina.home=C:\install\YonghongXViewer\Yonghong Desktop\tomcat
11-Oct-2022 08:43:45.946 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log 命令行参数:       -Djava.io.tmpdir=C:\install\YonghongXViewer\Yonghong Desktop\tomcat\temp
11-Oct-2022 08:43:45.954 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent 在java.library.path:[C:\install\java\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\install\SVN\bin;C:\install\nodes.js\;C:\install\PLSQL\instantclient_11_2;C:\install\java\bin;C:\Users\xgl\AppData\Local\Microsoft\WindowsApps;C:\install\PLSQL\instantclient_11_2;C:\install\visual code\Microsoft VS Code\bin;C:\Users\xgl\AppData\Roaming\npm;;.]上找不到基于APR 的Apache Tomcat本机库,该库允许在生产环境中获得最佳性能
11-Oct-2022 08:43:46.277 信息 [main] org.apache.coyote.AbstractProtocol.init 初始化协议处理器 ["http-nio-8941"]
11-Oct-2022 08:43:46.328 信息 [main] org.apache.catalina.startup.Catalina.load 服务器在[659]毫秒内初始化
11-Oct-2022 08:43:46.393 信息 [main] org.apache.catalina.core.StandardService.startInternal 正在启动服务[Catalina]
11-Oct-2022 08:43:46.394 信息 [main] org.apache.catalina.core.StandardEngine.startInternal 正在启动 Servlet 引擎:[Apache Tomcat/9.0.65]
11-Oct-2022 08:43:46.404 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [C:\install\YonghongXViewer\Yonghong Desktop\tomcat\webapps\bi]
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
11-Oct-2022 08:44:04.133 警告 [main] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom 使用[SHA1PRNG]创建会话ID生成的SecureRandom实例花费了[616]毫秒。
Set bi.home: C:\install\YonghongXViewer\Yonghong Desktop\Yonghong\bihome.
Loading db settings from file system: C:\install\YonghongXViewer\Yonghong Desktop\Yonghong\db.properties
Loading settings from file system: bi.properties
[2022-10-11 08:44:04.203] |-[main] |-[INFO] |-[] |-[] |-[g5.qry.sql.security.JDBCSecurityTool.init(JDBCSecurityTool.java:151)] |-[Load jdbc white space cost 0 ms.]
WARNING: not set security manager!
[2022-10-11 08:44:04.268] |-[main] |-[INFO] |-[] |-[] |-[g5.log.LogService.init(LogService.java:54)] |-[log system initialization successful.]
Loading idRef.properties from file system: C:\install\YonghongXViewer\Yonghong Desktop\Yonghong\bihome/idRef.properties
11-Oct-2022 08:44:07.030 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory Web应用程序目录[C:\install\YonghongXViewer\Yonghong Desktop\tomcat\webapps\bi]的部署已在[20,626]毫秒内完成
11-Oct-2022 08:44:07.031 信息 [main] org.apache.catalina.startup.HostConfig.deployDirectory 把web 应用程序部署到目录 [C:\install\YonghongXViewer\Yonghong Desktop\tomcat\webapps\print]
Loading cipher.properties from file system: C:\install\YonghongXViewer\Yonghong Desktop\Yonghong\cipher.properties
Loading portal settings from file system: portal_config.properties
Sync redis properties file not define.
回复

使用道具 举报

jizhe青铜三 显示全部楼层 发表于 2022-10-11 09:05:01
是端口占用问题吗?http://localhost:8941/bi/Viewer  默认的是8080  
回复

使用道具 举报

0xRichard钻石一 显示全部楼层 发表于 2022-10-11 09:17:25
yhdata_Sec7ssv1 发表于 2022-10-11 08:50
安装jdk11后,http://localhost:8941/bi/Viewer  这个一直打不开显示白屏页面。

\tomcat\bin\setclasspath.bat和Yonghong\log\bi.log发来看看
回复

使用道具 举报

yhdata_Sec7ssv1青铜一 显示全部楼层 发表于 2022-10-11 13:45:24
richard_y 发表于 2022-10-11 09:17
\tomcat\bin\setclasspath.bat和Yonghong\log\bi.log发来看看

\tomcat\bin\setclasspath.bat 如下:

set JAVA_HOME=C:\install\java
set JRE_HOME=C:\install\java
@echo off
rem Licensed to the Apache Software Foundation (ASF) under one or more
rem contributor license agreements.  See the NOTICE file distributed with
rem this work for additional information regarding copyright ownership.
rem The ASF licenses this file to You under the Apache License, Version 2.0
rem (the "License"); you may not use this file except in compliance with
rem the License.  You may obtain a copy of the License at
rem
rem     http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.

rem ---------------------------------------------------------------------------
rem Set JAVA_HOME or JRE_HOME if not already set, ensure any provided settings
rem are valid and consistent with the selected start-up options and set up the
rem endorsed directory.
rem ---------------------------------------------------------------------------

rem Make sure prerequisite environment variables are set

rem In debug mode we need a real JDK (JAVA_HOME)
if ""%1"" == ""debug"" goto needJavaHome

rem Otherwise either JRE or JDK are fine
if not "%JRE_HOME%" == "" goto gotJreHome
if not "%JAVA_HOME%" == "" goto gotJavaHome
echo Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
echo At least one of these environment variable is needed to run this program
goto exit

:needJavaHome
rem Check if we have a usable JDK
if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if not exist "%JAVA_HOME%\bin\jdb.exe" goto noJavaHome
if not exist "%JAVA_HOME%\bin\javac.exe" goto noJavaHome
set "JRE_HOME=%JAVA_HOME%"
goto okJava

:noJavaHome
echo The JAVA_HOME environment variable is not defined correctly.
echo It is needed to run this program in debug mode.
echo NB: JAVA_HOME should point to a JDK not a JRE.
goto exit

:gotJavaHome
rem No JRE given, use JAVA_HOME as JRE_HOME
set "JRE_HOME=%JAVA_HOME%"

:gotJreHome
rem Check if we have a usable JRE
if not exist "%JRE_HOME%\bin\java.exe" goto noJreHome
goto okJava

:noJreHome
rem Needed at least a JRE
echo The JRE_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto exit

:okJava
rem Don't override the endorsed dir if the user has set it previously
if not "%JAVA_ENDORSED_DIRS%" == "" goto gotEndorseddir
rem Java 9 no longer supports the java.endorsed.dirs
rem system property. Only try to use it if
rem CATALINA_HOME/endorsed exists.
if not exist "%CATALINA_HOME%\endorsed" goto gotEndorseddir
set "JAVA_ENDORSED_DIRS=%CATALINA_HOME%\endorsed"
:gotEndorseddir

rem Don't override _RUNJAVA if the user has set it previously
if not "%_RUNJAVA%" == "" goto gotRunJava
rem Set standard command for invoking Java.
rem Also note the quoting as JRE_HOME may contain spaces.
set _RUNJAVA="%JRE_HOME%\bin\java.exe"
:gotRunJava

setlocal EnableDelayedExpansion
set tmpclasspath=
for %%i in (..\..\Yonghong\product, ..\..\example, ..\..\Yonghong\lib) do (
    for /F "delims=" %%s in ('dir %%i\*.jar /s/b/a-d') do (
        set tmpclasspath=!tmpclasspath!;%%s
    )
)

ENDLOCAL & set tmpclasspath=%tmpclasspath%

set CLASSPATH=%CLASSPATH%;..\webapps\bi\WEB-INF\classes;%tmpclasspath%;..\lib\servlet-api.jar;

rem Don't override _RUNJDB if the user has set it previously
rem Also note the quoting as JAVA_HOME may contain spaces.
if not "%_RUNJDB%" == "" goto gotRunJdb
set _RUNJDB="%JAVA_HOME%\bin\jdb.exe"
:gotRunJdb

goto end

:exit
exit /b 1

:end
exit /b 0
回复

使用道具 举报

yhdata_lyaa 显示全部楼层 发表于 2022-10-11 14:06:21
按照楼上的截图修改过吗,正确配置jdk和jre的地址
回复

使用道具 举报

高级模式
您需要登录后才可以回帖 登录 | 免费注册

  • 官方微信

    欢迎关注永洪服务号!收费为0,价值无限

    扫码关注
  • 新浪微博

    让每位用户轻松挖掘数据价值!

    访问新浪微博
  • 智能客服
50W

会员等你来哦

Copyright   ©2012-2024  北京永洪商智科技有限公司  (京ICP备12050607) 京公网安备110110802011451号 |《永洪社区协议》
返回顶部