startup

记录一次tomcat问题排查记录:org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19

ぃ、小莉子 提交于 2019-12-16 11:49:05
最近项目升级jdk,从jdk7 升级到 jdk8,本地已经自测完成了,需要部署到测试环境,测试环境已经装好 jdk8 了,但是tomcat 的版本还是 7。不过,据我之前了解,tomcat7是可以运行JDK8编译的web工程的,只要tomcat的运行环境的JDK是1.8即可。但是不能有比JDK1.8还要新的特性。所以最终决定不升级 tomcat 版本。 等我把项目部署到 测试环境 tomcat 下后,项目是可以跑起来的且能正常运行,但是在项目启动过程中,报了一堆错: SEVERE: Unable to process Jar entry [module-info.class] from Jar [jar:file:/home/.......(中间省略)....../WEB-INF/lib/jakarta.ws.rs-api-2.1.5.jar!/] for annotations org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19 at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:136) at org.apache.tomcat

Tomcat 启动闪退

泄露秘密 提交于 2019-12-16 02:09:33
<自用> 故障描述: 这篇记录一次神奇的Tomcat 闪退故障. 最近在开发时候,发现了一个神奇的事情,每次启动Tomcat 就闪退,又完全抓不到任何错误日志。 首先百分百可以确定的是JDK配置肯定没有任何问题的,Tomcat 原来配置如下: Tomcat 环境变量配置如下: Path 路径配置如下: 睁大眼睛看清楚,是不是觉得上面的配置似乎没有任何问题? 但是当你在安装目录的bin 文件夹下双击启动startup.bat 或者在命令行下输入命令: startup 你会发现Tomcat 神奇的闪退了,查看log 日志文件夹,看不到任何错误日志。 天知道我排查了好久,才发现这个隐藏这么深的Bug. 故障分析 问题出在哪里呢?问题就出在环境变量的配置上。 我们再来看下刚才的配置: CATALINA_HOME C:\Apps\tomcat\apache-tomcat-9.0.14-windows-x64\apache-tomcat-9.0.14\ path 中是这么调用的 %CATALINA_HOME%\bin 当你执行startup 命令的时候,实际访问的路径就是 C:\Apps\tomcat\apache-tomcat-9.0.14-windows-x64\apache-tomcat-9.0.14\bin 睁大眼睛看清楚了,问题就出在这里 apache-tomcat-9.0.14\

Oracle中shutdown和startup命令详解

不羁岁月 提交于 2019-12-16 01:08:10
shutdown normal 不断开现在连接的用户,阻止任何用户建立新的连接,包括管理员在内。已经连接的用户能够继续他们当前的工作,如递交新的更新事务,直到此用户自行断开连接.这样需要等待的时间长,可以查出现连用户,再通知其自行断开. 所有的用户都断开连接,数据库才进行关闭操作,即关闭数据库、卸载数据库、终止例程。在这种情况下关闭的数据库在重新启动后,不会出现问题。启动时不需要实例恢复。 shutdown transactional 阻止任何用户建立新的连接。等待所有当前连接用户的未递交的活动事务提交完毕,然后立即断开用户的连接。所有的用户都断开连接则立即关闭数据库,进行关闭数据库、卸载数据库、终止进程等操作。这种方式,用户有可能正在算账,做复杂报表!一次数据库操作做不完的,在刚做了一次数据库操作后,将被断开,这样对用户有一定影响.启动时不需要实例恢复。 shutdown immediate 阻止任何用户新的连接,同时限制当前连接用户开始新的事务。如果已连接用户有未完成的事务,则数据库系统不会等待他们完成,而是直接把当前未递交的事务回退。数据库系统不再等待用户主动断开连接,当未递交的事务回退成功后,系统会直接关闭、卸载数据库,并终止数据库进程。启动时不需要实例恢复。 shutdown abort 当数据库出现故障时,可能以上三种方式都无法正常关闭数据库,则使用这种方法

C# How do I handle a one time startup condition for a form if the form is generated new each time?

只谈情不闲聊 提交于 2019-12-14 03:29:27
问题 I have form A , which opens form B after an event then hides itself. Form B generates conditions for form A then returns to form A and closes itself; however, due to conflict with code, I will have to generate form A anew lest I encounter a stackoverflow exception / my application not closing properly (due to form A , the main form, being hidden) This has gotten a bit confusing, essentially I've already solved this by declaring the main form as new each time, however, I wish to be able to

Will a Delphi form always fire OnResize when it's shown?

萝らか妹 提交于 2019-12-14 01:27:58
问题 If I create a new Delphi form, hook its OnResize event, and run the app, OnResize is fired before the window is shown. What I don't know is whether this will always happen, for any window. (For anyone familiar with the Windows API, I've traced it to the ShowWindow call in TCustomForm.ShowingChanged (Forms.pas line 5503 in Delphi 2007), which apparently triggers a WM_SIZE ... at least, for a new window with no other properties set. I haven't seen it documented that ShowWindow always fires WM

Eclipse error after installing e(fx)clipse

纵饮孤独 提交于 2019-12-13 11:14:07
问题 After I installed e(fx)clipse on my Eclipse 2018-09, I only get an error at the startup: An error has occurred. See the log file." You can see the log file at: pastebin.com/zXffdy2v I don't know what went wrong, it seemed it installed correctly. I'm using this installer for Java JDK: jdk-11.0.1_windows-x64_bin. 回答1: This is because you are using Java 11 which does not provide javax.xml.bind anymore. Some of the plug-ins you need haven't been fixed to deal with this. Using Java 10 should be OK

Application on windows startup

倖福魔咒の 提交于 2019-12-13 03:59:02
问题 i wish to load my C# application after windows user login and before windows desktop appears. currently i added my application startup path to registry run key. it loads my application correctly but windows windows desktop appears[2 sec] then my application runs Note: My application creates seperate desktop using winapi, while my application running it hides the desktop temporarily. 回答1: This really isn't possible to do. Windows works pretty hard to get the desktop up and explorer responsive

Run my Python script at login on linux

二次信任 提交于 2019-12-13 03:30:30
问题 I have a Python script, and I want it to be autostarted at every login. It's in a linux system. I followed a guide that explains that is enough to create a .desktop file in ~/.config/autostart/*.desktop and write: [Desktop Entry] Name=MyApp Type=Application Exec=python3 ~/.myapp/myapp Terminal=false I tried several times to reboot but the program doesn't execute, even if it seems to be active in the list of application of startup in my lxde environment. 回答1: Often things like the ~ (tilde)

Message to Windows logon screen when services started

試著忘記壹切 提交于 2019-12-13 01:34:33
问题 When I boot my Windows 8.1 laptop, I want to display a message on the Windows logon screen so that I know when all services and startup processes have started. Aside from just waiting some number of minutes, with the assumption that all services that can start have done so, how can I code a process to query for a "startup complete" condition and then update the UI? Would detection of startup-complete be possible with a group policy startup script or a task scheduler routine that triggers on

How to run a program on startup in Debian

烂漫一生 提交于 2019-12-13 00:47:34
问题 I am attempting to run a program that I made on startup on my Raberry Pi 2. It is running Debian (Jessie) but it doesn't seem to work. I tried following this guide: Debian: Running Scripts on StartUp and creating a system link but nothing seems to be working. The program works when I run it not on startup. Here's the code: #!/bin/sh #/etc/init.d/StartGRIP.sh # ### BEGIN INIT INFO # Provides: StartGRIP.sh # Required-Start: $local_fs $network # Required-Stop: $local_fs # Default-Start: 2 3 4 5