起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 5325|回复: 6

[已结贴] 部署到 CentOS 7.2 + Tomcat 8 下无法运行

[复制链接]

24

主题

108

帖子

318

积分

中级会员

Rank: 3Rank: 3

积分
318
发表于 2017-1-29 23:25:38 | 显示全部楼层 |阅读模式
/usr/local/tomcat/logs/catalina-daemon.out
  1. 29-Jan-2017 22:56:55.630 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor /usr/local/tomcat/conf/Catalina/localhost/baas.xml
  2. 29-Jan-2017 22:56:55.659 WARNING [localhost-startStop-1] org.apache.catalina.startup.SetContextPropertiesRule.begin [SetContextPropertiesRule]{Context} Setting property 'processTlds' to 'false' did not find a matching property.
  3. 29-Jan-2017 22:56:58.151 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
  4. 29-Jan-2017 23:04:59.135 INFO [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [480,980] milliseconds.
  5. 29-Jan-2017 23:04:59.150 SEVERE [localhost-startStop-1] org.apache.jasper.EmbeddedServletOptions.<init> The scratchDir you specified: /usr/local/tomcat/work/Catalina/localhost/baas is unusable.
  6. 29-Jan-2017 23:04:59.159 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor /usr/local/tomcat/conf/Catalina/localhost/baas.xml has finished in 483,530 ms
复制代码

/usr/local/tomcat/conf/Catalina/localhost/baas.xml
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Context processTlds="false" docBase="/data/WeX5/runtime/BaasServer" path="/Baas" reloadable="true">
  3.   <Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false" maxActiveSessions="-1" minIdleSwap="-1" maxIdleSwap="-1" maxIdleBackup="-1">
  4.         <Store className="org.apache.catalina.session.FileStore" directory="seskep"/>
  5.   </Manager>
  6. </Context>
复制代码

/usr/local/tomcat/conf/Catalina/localhost/x5.xml
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Context processTlds="false" docBase="/data/WeX5/runtime/UIServer" paht="x5" reloadable="false">
  3.   <Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false" maxActiveSessions="-1" minIdleSwap="-1" maxIdleSwap="-1" maxIdleBackup="-1">
  4.         <Store className="org.apache.catalina.session.FileStore" directory="seskep"/>
  5.   </Manager>
  6. </Context>
复制代码

24

主题

108

帖子

318

积分

中级会员

Rank: 3Rank: 3

积分
318
 楼主| 发表于 2017-2-1 20:32:41 | 显示全部楼层
链接库不配陪?!
  1. Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /usr/local/tomcat/temp/dll/libui-core-jni-dev-linux-x64_227d8d2083c145ed8c51625d24b23c83.so which might have disabled stack guard. The VM will try to fix the stack guard now.
  2. It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
  3. 2017-02-01 20:19:38 ??: JUSTEP000030; ??: ??ui-core-jni??
  4. com.justep.ui.exception.UIException: ??: JUSTEP000030; ??: ??ui-core-jni??
  5.         at com.justep.ui.exception.UIException.create(Unknown Source)
  6.         at com.justep.ui.listener.NativeLoaderListener.contextInitialized(Unknown Source)
  7.         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4853)
  8.         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
  9.         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
  10.         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:753)
  11.         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:729)
  12.         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
  13.         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587)
  14.         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
  15.         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:587)
  16.         at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1798)
  17.         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  18.         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  19.         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  20.         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  21.         at java.lang.Thread.run(Thread.java:745)
  22. Caused by: java.lang.UnsatisfiedLinkError: /usr/local/tomcat/temp/dll/libui-core-jni-dev-linux-x64_227d8d2083c145ed8c51625d24b23c83.so: /usr/local/tomcat/temp/dll/libui-core-jni-dev-linux-x64_227d8d2083c145ed8c51625d24b23c83.so: invalid ELF header (Possible cause: endianness mismatch)
  23.         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
  24.         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
  25.         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824)
  26.         at java.lang.Runtime.load0(Runtime.java:809)
  27.         at java.lang.System.load(System.java:1086)
  28.         ... 14 more
复制代码
回复 支持 反对

使用道具 举报

24

主题

108

帖子

318

积分

中级会员

Rank: 3Rank: 3

积分
318
 楼主| 发表于 2017-2-1 20:42:07 | 显示全部楼层
知道了,正在下载Linux版运行库。
回复 支持 反对

使用道具 举报

24

主题

108

帖子

318

积分

中级会员

Rank: 3Rank: 3

积分
318
 楼主| 发表于 2017-2-1 23:37:05 | 显示全部楼层
Baas报错io错误,是否权限问题?
  1. HTTP Status 500 - Servlet.init() for servlet WeX5_Baas_Servlet threw exception

  2. type Exception report

  3. message Servlet.init() for servlet WeX5_Baas_Servlet threw exception

  4. description The server encountered an internal error that prevented it from fulfilling this request.

  5. exception

  6. javax.servlet.ServletException: Servlet.init() for servlet WeX5_Baas_Servlet threw exception
  7.         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
  8.         org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
  9.         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
  10.         org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104)
  11.         org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
  12.         org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
  13.         org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
  14.         java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  15.         java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  16.         org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  17.         java.lang.Thread.run(Thread.java:745)
  18. root cause

  19. java.lang.NullPointerException
  20.         java.io.File.<init>(File.java:277)
  21.         com.justep.baas.servlet.BaasServlet.initLog4j(Unknown Source)
  22.         com.justep.baas.servlet.BaasServlet.init(Unknown Source)
  23.         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
  24.         org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
  25.         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
  26.         org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104)
  27.         org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
  28.         org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
  29.         org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
  30.         java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  31.         java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  32.         org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
  33.         java.lang.Thread.run(Thread.java:745)
  34. note The full stack trace of the root cause is available in the Tomcat logs.
复制代码
回复 支持 反对

使用道具 举报

24

主题

108

帖子

318

积分

中级会员

Rank: 3Rank: 3

积分
318
 楼主| 发表于 2017-2-2 22:33:01 | 显示全部楼层
设置“JUSTEP_HOME”环境变量就OK了
回复 支持 反对

使用道具 举报

31

主题

1856

帖子

3070

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3070
发表于 2017-2-4 23:48:32 | 显示全部楼层
楼主大好人,给了对应的问题和解决办法
回复 支持 反对

使用道具 举报

2

主题

16

帖子

64

积分

初级会员

Rank: 2

积分
64
QQ
发表于 2017-2-9 23:35:31 | 显示全部楼层
请问是否需要下载Linux运行时库?在哪里下载?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-12-4 16:50 , Processed in 0.068075 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表