tomcat

#tomcat#

已有1人关注此标签

内容分类

34712924

Tomcat证书配置

SSL,证书配置,请问这个需不需要证书转换?

hsgd1995

阿里云服务器下的8080端口不能通过域名访问,怎么配置安全组?

在云服务器中加了一个tomcat,使用8080端口,然后配置了一个域名。tomcat可以正常启动,但是在浏览器使用域名不能访问到tomcat的项目。在网上查了资料说是要配置安全组,可是使用0.0.0.0/0设置会弹出警告信息,那么怎样设置才能用域名访问tomcat里的项目。

ronniehu

LAMP轻量服务器可以更改默认webserver吗?

题主装载了tomcat和jdk到LAMP轻量服务器上,但是80端口恒为apache占用,且httpd.conf配置文件为readonly,请问还能不能把80端口改成tomcat占有了?

李博bluemind

tomcat这一段很奇怪,什么情况下线程池里的线程能大于最大允许线程数呢?

tomcat这一段很奇怪,什么情况下线程池里的线程能大于最大允许线程数呢?

云驿站

阿里云的软件镜像是什么?有什么用?能帮我提高效率吗?

一般我是自己选好操作系统之后,就直接在操作系统上一个一个安装Java 运行环境,比如要安装jdk,tomcat,mysql.之前也没怎么了解过镜像是什么东西,有什么作用,可以帮我什么忙?希望有知道的人帮忙解答下。要回答全面详细的,有条理的。

赵哓泽

自建小网站t5突发性云主机能满足吗?

自建网站,t5突发性云主机能满足搭建MySQL和部署javaWeb应用的需求吗?并发并不高,仅一个后台管理的应用,能自己远程连接主机用使用tomcat部署吗?谢谢

这茶好喝

在linux上配置了tomcat服务,访问时提示拒绝访问

服务启动正常,云服务器控制台安全组策论已经添加开放了80和8080端口,服务器不知道如何配置端口,求帮助

李博bluemind

请问一个问题,现在有个应用使用了第三方的jar包,应用使用spring boot ,用自带的tomcat使用时没有问题,但是部署到真实tomcat时 会出现如下:

请问一个问题,现在有个应用使用了第三方的jar包,应用使用spring boot ,用自带的tomcat使用时没有问题,但是部署到真实tomcat时 会出现 javassist.CannotCompileException: by java.lang.NoClassDefFoundError: org/pbccrc/archive/collect/messagetools/validators/IGetValueHandlerat javassist.util.proxy.DefineClassHelper.toClass2(DefineClassHelper.java:140) ~[javassist-3.22.0-GA.jar:?]at javassist.util.proxy.DefineClassHelper.toClass(DefineClassHelper.java:95) ~[javassist-3.22.0-GA.jar:?]at javassist.ClassPool.toClass(ClassPool.java:1143) ~[javassist-3.22.0-GA.jar:?]at javassist.ClassPool.toClass(ClassPool.java:1106) ~[javassist-3.22.0-GA.jar:?]at javassist.CtClass.toClass(CtClass.java:1331) ~[javassist-3.22.0-GA.jar:?]at org.pbccrc.archive.collect.messagetools.validators.utils.GetFullNameValueHandlerRobot.genHandler(GetFullNameValueHandlerRobot.java:119) ~[client-collect-api-0.3.28.0.jar:?]at org.pbccrc.archive.collect.messagetools.validators.utils.GetFullNameValueHandlerRobot.builderGVHandler(GetFullNameValueHandlerRobot.java:79) ~[client-collect-api-0.3.28.0.jar:?]at org.pbccrc.archive.collect.messagetools.validators.utils.GetFullNameValueHandlerRobot.genGetFullNameValueHandler(GetFullNameValueHandlerRobot.java:54) ~[client-collect-api-0.3.28.0.jar:?]at org.pbccrc.archive.collect.messagetools.validators.ValidatorBulider.bulid(ValidatorBulider.java:61) ~[client-collect-api-0.3.28.0.jar:?]at org.pbccrc.archive.collect.messagetools.validators.ValidatorLoader.build(ValidatorLoader.java:59) ~[client-collect-api-0.3.28.0.jar:?]at org.pbccrc.archive.collect.messagetools.validators.ValidatorLoader.run(ValidatorLoader.java:47) ~[client-collect-api-0.3.28.0.jar:?]at org.pbccrc.collectclient.api.reportfile.Loader.loadValidator(Loader.java:93) ~[client-collect-api-0.3.28.0.jar:?]at net.riking.util.ReportFileProcess.(ReportFileProcess.java:45) ~[classes/:0.0.1-SNAPSHOT]at net.riking.util.PreprocessUtil.verifyFile(PreprocessUtil.java:23) ~[classes/:0.0.1-SNAPSHOT]

安丽达科技

Tomcat环境部署SSL证书

Tomcat环境部署SSL证书443端口启动不了,请大神求救!

小蒲君

阿里云轻量应用服务器,配置了tomcat服务器,外部浏览器不能访问ip

阿里云轻量应用服务器,配置了tomcat服务器,放开了8080端口,设置了防火墙,仍然不能访问ip,不过用ping可以ping通公网ip,求解决。服务器版本为centos7.3

k8s小能手

Node Join但master只显示kubernetes集群上的主节点 问

我们的客户已经使用Tomcat Web服务器。并且,他们的java Web应用程序已部署在Tomcat服务器的Web应用程序目录中。客户的申请不是独立的。它必须需要Web应用程序服务器。 在这种情况下,我想知道集成java Web应用程序的最佳实践是什么?如何组成Kubernetes的容器(Pod)?

李博bluemind

为什么linux 停止tomcat了,显示tomcat进程还有?

为什么linux 停止tomcat了,显示tomcat进程还有

wbm12

为什么我在阿里云服务器上的网站不能使用80端口

系统信息:操作系统:centos 6.8中间件:tomcat 当tomcat使用8080端口,配置如下 <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> tomcat端口使用如上8080时,外网访问只能http://www.wfjfdsj.com:8080/访问当tomcat使用80端口,配置如下 <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> tomcat端口使用如上80端口时,外网无法访问网站

蚂蚁在路上

jdbc操作数据库,mysql语句没有错误,抛出这个日志查询无果,很是头疼

一月 17, 2019 3:16:21 下午 org.apache.tomcat.util.http.parser.Cookie logInvalidHeader信息: A cookie header was received [1547705040,1547705838,1547706681] that contained an invalid cookie. That cookie will be ignored.Note: further occurrences of this error will be logged at DEBUG level.

sgxu

windows如何查看tomcat日志?

tomcat注册为系统服务启动后,windows服务器上如何查看项目运行的实时日志? 之前用的hoo wintail软件看日志,但是通过系统服务启动tomcat后,无法查看实时日志了

k8s小能手

命令进入pod

我试图在我的pod中设置命令,当我尝试创建pod时,此错误显示给我 错误:解析pod.yaml时出错:将YAML转换为JSON时出错:yaml:第17行:找不到预期的','或']' pod.yaml apiVersion: v1kind: Podmetadata: name: iafoxtsdemo9 labels: app: iafoxtest name: iafoxtsdemo9 spec: containers: name: iafoximage: xxxxx.azurecr.io/xxxxx:3.5-7-g24789b7ports: containerPort: 8080env: name: DBNAME value: "ts-demo1" command: ["/bin/bash"]args: ["-c","cd /usr/local/tomcat/bin/ && sed -i "s~database=.*;~database=${DBNAME};~" setenv.sh"] imagePullSecrets: name: iafoxkey

k8s小能手

Spring Cloud Kubernetes - 启用配置重新加载后,Spring启动无法启动

我有这个演示项目,它打印一个从配置中读取的标签。 这是我的主要课程: @SpringBootApplication@EnableDiscoveryClient@RestControllerpublic class DemoApplication { private MyConfig config; private DiscoveryClient discoveryClient; @Autowired public DemoApplication(MyConfig config, DiscoveryClient discoveryClient) { this.config = config; this.discoveryClient = discoveryClient; } @RequestMapping("/") public String info() { return config.getMessage(); } public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } @RequestMapping("/services") public String services() { StringBuilder b = new StringBuilder(); discoveryClient.getServices().forEach((s) -> b.append(s).append(" , ")); return b.toString(); } }而MyConfig类是: @Configuration@ConfigurationProperties(prefix = "bean")public class MyConfig { private String message = "a message that can be changed live"; public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } }将bootstrap.properties包含以下内容: spring.application.name=demospring.cloud.kubernetes.config.name=demospring.cloud.kubernetes.config.enabled=truespring.cloud.kubernetes.config.namespace=defaultspring.cloud.kubernetes.reload.enabled=truespring.cloud.kubernetes.reload.monitoring-config-maps=truespring.cloud.kubernetes.reload.strategy=refreshspring.cloud.kubernetes.reload.mode=eventmanagement.endpoint.refresh.enabled=truemanagement.endpoints.web.exposure.include=*以及依赖关系build.gradle: dependencies { compile("org.springframework.boot:spring-boot-starter-web") compile("org.springframework.boot:spring-boot-starter-actuator") compile("org.springframework.cloud:spring-cloud-starter-kubernetes:+") compile("org.springframework.cloud:spring-cloud-starter-kubernetes-config:+") testCompile('org.springframework.boot:spring-boot-starter-test') runtime("org.springframework.boot:spring-boot-properties-migrator") }我正在创建ConfigMap kubectl create -f configmap-demo.yml作为内容: apiVersion: v1kind: ConfigMapmetadata: name: demodata: bean.message: This is an info from k8 在Kubernetes中部署时,我在Spring Boot启动时收到以下错误: 2019-01-02 13:41:41.462 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration $$ EnhancerBySpringCGLIB $$ e13002af] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) . _ /\ / ' _(_) _ \( ( )__ | ' | '_| | '_ / _` | \ \/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |___, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.1.1.RELEASE) 2019-01-02 13:41:41.940 INFO 1 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: ConfigMapPropertySource {name='configmap.demo.default'}2019-01-02 13:41:41.942 INFO 1 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: SecretsPropertySource {name='secrets.demo.default'}2019-01-02 13:41:42.030 INFO 1 --- [ main] com.example.demo.DemoApplication : The following profiles are active: kubernetes2019-01-02 13:41:43.391 INFO 1 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=416ee750-8ebb-365d-9114-12b51acaa1e02019-01-02 13:41:43.490 INFO 1 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration $$ EnhancerBySpringCGLIB $$ e13002af] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)2019-01-02 13:41:43.917 INFO 1 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)2019-01-02 13:41:43.952 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]2019-01-02 13:41:43.953 INFO 1 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/9.0.132019-01-02 13:41:43.969 INFO 1 --- [ main] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64:/usr/lib/jvm/java-1.8-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]2019-01-02 13:41:44.156 INFO 1 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext2019-01-02 13:41:44.157 INFO 1 --- [ main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2033 ms2019-01-02 13:41:44.957 INFO 1 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'2019-01-02 13:41:45.353 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'propertyChangeWatcher' defined in class path resource [org/springframework/cloud/kubernetes/config/reload/ConfigReloadAutoConfiguration$ConfigReloadAutoConfigurationBeans.class]: Unsatisfied dependency expressed through method 'propertyChangeWatcher' parameter 1; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'configurationUpdateStrategy' defined in class path resource [org/springframework/cloud/kubernetes/config/reload/ConfigReloadAutoConfiguration$ConfigReloadAutoConfigurationBeans.class]: Unsatisfied dependency expressed through method 'configurationUpdateStrategy' parameter 2; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.cloud.context.restart.RestartEndpoint' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}2019-01-02 13:41:45.358 INFO 1 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'2019-01-02 13:41:45.370 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]2019-01-02 13:41:45.398 INFO 1 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2019-01-02 13:41:45.612 ERROR 1 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : APPLICATION FAILED TO START Description: Parameter 2 of method configurationUpdateStrategy in org.springframework.cloud.kubernetes.config.reload.ConfigReloadAutoConfiguration$ConfigReloadAutoConfigurationBeans required a bean of type 'org.springframework.cloud.context.restart.RestartEndpoint' that could not be found. The following candidates were found but could not be injected: - Bean method 'restartEndpoint' in 'RestartEndpointWithIntegrationConfiguration' not loaded because @ConditionalOnClass did not find required class 'org.springframework.integration.monitor.IntegrationMBeanExporter' - Bean method 'restartEndpointWithoutIntegration' in 'RestartEndpointWithoutIntegrationConfiguration' not loaded because @ConditionalOnEnabledEndpoint no property management.endpoint.restart.enabled found so using endpoint default Action: Consider revisiting the entries above or defining a bean of type 'org.springframework.cloud.context.restart.RestartEndpoint' in your configuration.如果我设置spring.cloud.kubernetes.reload.enabled为false一切正常,则会读取并使用configmap。现在我的目标是在configmap更改时重新加载配置,但是获得上面看到的异常。我可以/actuator/refresh手动调用,所以我不认为缺少刷新端点的可用性。

k8s小能手

Docker和CI-CD [暂停]

我们希望将Docker设置用于整个场景,end-to-end,也可以将Kubernetes作为其中的一部分。给定:在GitHub / GitLab中有一个带有Build文件的项目源代码,它生成jar文件。当运行构建文件时,我们得到一个带有内置Tomcat服务器的jar文件,这意味着,当我们运行jar文件时,将启动Tomcat服务器,从而启动我们的Application实例(启动1个实例)。 需要:我们能否以容器化的方式创建此应用程序的多个实例,这意味着,我们应该能够在自己的单独容器中创建尽可能多的实例。在我们创建应用程序的多个实例时,我们应该只对项目进行一次构建,而且,承载应用程序的每个容器都需要拥有自己的操作系统并在其上安装Java和Nginx。 我的评论:我们应该能够构建项目(从GitHub或GitLab远程),并通过运行来自基本操作系统的命令将生成的jar文件部署到基本操作系统上。然后我们应该能够通过Kubernetes创建一个或多个容器。我知道在每个容器中安装专用的Java和Nginx操作系统是多余的,但我想将其作为样本。理想情况下,我们只在基本操作系统上安装Java和Nginx一次,在我们的例子中,然后旋转尽可能多的容器,因为我们想运行相应数量的应用程序实例。 在上面的消息中,base-OS和dedicated-host-OS(Container中的OS)的示例分别是Linux Fedora和CentOS。我知道base-OS和host-OS共享相同的内核。我从每个容器中的专用OS暗示的是主机/容器OS可以与基本OS不同。

悠2016

端口外网不能访问,配置安全组规则无效

使用启动tomcat后8080端口外网不能访问使用flask 5000端口不能访问还试过mysql的端口也不能访问本机直接访问 http://127.0.0.1:8080 和http://127.0.0.1:5000都没有问题 端口配置如图

核桃加果仁

org.apache.tomcat.util.http.parser.Cookie.logInvalidHeader A cookie header was received [1545959313; Hm_lpvt_ebe23eb396f5a803e26ea4bd102a8b0f=1545959313] that contained an invalid cookie. That cookie will be ignored.Note: further occurrences of this error

外网部署时,扫描二维码报错,请求路径后面多出:&nsukey=GyorvtsJ1eJz9a8H4MZxVUEvejA62dJ7F79%2BsCISJm1sB%2FqkShDAO4XZiujmVCvNVEsTyaDCIgyleH7gKfnZxJrqst9qBbbv9vER4FNgtos4mzUsaLjoxIuRl0y%2B1D9rsWbV7Poq9fpOiMwnfy0521zetoEw9J3riBiHZMlNd3vWfC4K8%2FA49o%2BrdSG%2F2iAmxY9bQeqjBs5OsY3FeVYgaA%3D%3D导致请求错误,控制台打印org.apache.tomcat.util.http.parser.Cookie.logInvalidHeader A cookie header was received [1545959313; Hm_lpvt_ebe23eb396f5a803e26ea4bd102a8b0f=1545959313] that contained an invalid cookie. That cookie will be ignored.Note: further occurrences of this error will be logged at DEBUG level.