10部署一直出现404 怎么解决

jdk1.8 + tomcat8.35 ,路径没有问题,

12-Dec-2018 11:29:26.220 严重 [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start:

 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webroot]]

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1140)

        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

        at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.UnsupportedClassVersionError: com/sun/tools/attach/VirtualMachine : Unsupported major.minor version 52.0

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:274)

        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1314)

        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1156)

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:191)

        at com.fr.jvm.assist.FineAssist.findVirtualMachine(Unknown Source)

        at com.fr.jvm.assist.FineAssist.

        at com.fr.runtime.FineRuntime.

        at com.fr.startup.FineWebApplicationStartup.

        at com.fr.startup.FineWebApplicationInitializer.onStartup(Unknown Source)

        at com.fr.third.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:175)

        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5245)

        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

        ... 10 more


12-Dec-2018 11:29:26.222 严重 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Error deploying web application directory [C:\Users\Administrator\Desktop\apache-tomcat-8.5.35\webapps\webroot]

 java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webroot]]

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:758)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1140)

        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

        at java.lang.Thread.run(Thread.java:745)


FineReport M彬彬 发布于 2018-12-12 11:51 (编辑于 2018-12-12 11:53)
1min目标场景问卷 立即参与
回答问题
悬赏:4 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
0
M彬彬Lv0见习互助
发布于2018-12-18 16:00

设计器和tomcat 不能同时运行,建议jdk1.8 +tomcat8.0以上 ,记得引入jdk tools.jar  

最佳回答
0
影丶Lv5高级互助
发布于2018-12-12 13:31

①检查tools.jar包是否正确引用到了(服务器部署需引入tools.jar-http://help.finereport.com/doc-view-2475.html)

②检查机器上是否安装了多版本的JDK,所使用的tomcat是否正确引用了安装的jdk1.8(https://www.cnblogs.com/xing901022/p/4172410.html)

  • M彬彬 M彬彬(提问者) 其实最大的问题就是设计器和Tomcat 同时运行不管怎么样都404 ,同时运行有的时候会报端口错误
    2018-12-18 16:02 
  • 1关注人数
  • 300浏览人数
  • 最后回答于:2018-12-18 16:00
    请选择关闭问题的原因
    确定 取消
    返回顶部