在这篇文章中,我们将为您详细介绍ServerApplicationUnavailable的内容。此外,我们还会涉及一些关于Angular应用的browserApplication和serverAppl
在这篇文章中,我们将为您详细介绍Server Application Unavailable的内容。此外,我们还会涉及一些关于Angular 应用的 browser Application 和 server Application bundle、Application application_1512618719369_147804 failed 2 times due to ApplicationMaster for attempt app、Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099、ApplicationContextException:由于缺少ServletWebServerFactory bean而无法启动ServletWebServerApplicationContext的知识,以帮助您更全面地了解这个主题。
本文目录一览:- Server Application Unavailable
- Angular 应用的 browser Application 和 server Application bundle
- Application application_1512618719369_147804 failed 2 times due to ApplicationMaster for attempt app
- Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099
- ApplicationContextException:由于缺少ServletWebServerFactory bean而无法启动ServletWebServerApplicationContext
Server Application Unavailable
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
===============================================================================
发生原因是:
IIS默认的应用程序隔离机制被称为:“工作进程隔离模式”,在此模式中,应用程序被分为多个组,每个组就是一个“应用程序池” ,每个应用程序池之间是相互隔离的。 隔离的好处当然就是安全啦,稳定啦,等等。IIS中的每个应用程序池由一个“工作进程”分别进行管理,也就是"W3wp.exe" 。如果有多个应用程序池中的程序运行,我们就能看到多个w3wp.exe。 我们平时新建的虚拟目录都默认被指向IIS6的“DefaultAppPool" 中, 所以在默认情况下,不管你有多少个asp.net程序在运行,在“Windows任务管理器”中你只能看到一个w3wp.exe进程。
.net Framework 2.0的程序与.net Framework1.1(或1.0)的程序被放入同一个应用程序池(默认情况下放入DefaultAppPool池), 也就是由同一个工作进程: w3wp.exe 进行管理,而单个工作进程是无法同时管理不同的程序(或者不同版本的程序)的. 如果先访问.net framework 1.1的页面,则工作进程先加载并管理了 1.1版本的程序集,此时访问.net framework 2.0的web程序页面,Server application unavailable 错误就出来了. 反之,如果在默认应用程序池的w3wp.exe尚未启动前先访问了 2.0的web程序(此时应用程序集已经加载了.net framework2.0的Web程序集),再访问1.1或1.0的Web程序页面时,同样会出现"服务器应用程序不可用"
--------------------------------------------------------------------------------------------------------------------------------------------
解决办法:
(1)首先进入cmd,切换目录到 %systemRoot%\Microsoft.Net\framework\(%systemRoot% 是你 Windows 的安装目
录,一般就是 C:\Windows) (2)输入命令 “net stop w3svc”,先停止 w3svc 服务; (3)输入命令,切换到下层目录 一般是cd v2.0.5*; (4)执行 “aspnet_regiis.exe -ua” 解除 .Net 安装; (5)重新安装 .Net 到 IIS 中 “aspnet_regiis.exe -i” (6)重新启动 w3svc 即输入:net start w3svc
Angular 应用的 browser Application 和 server Application bundle
我们在使用 yarn run 启动 Angular 应用时,注意到 browser Application 和 server Application bundle 的生成:
在 Angular 应用程序中,应用程序包含两个主要的部分:客户端应用程序和服务器应用程序。客户端应用程序是在 Web 浏览器中运行的 Angular 应用程序,而服务器应用程序是在服务器端运行的 Node.js 应用程序。
为了支持这两个应用程序,Angular 应用程序包括两种类型的应用程序包:浏览器应用程序包和服务器应用程序包。
Browser Application Bundles
浏览器应用程序包是客户端应用程序的一部分,它包含了 Angular 应用程序在浏览器中运行所需的所有代码和资产。浏览器应用程序包通常包含以下内容:
- 所有的 TypeScript 和 JavaScript 代码,包括 Angular 应用程序的组件、指令、管道、服务等等。
- 所有的模板文件,这些模板文件描述了 Angular 应用程序的用户界面。
- 所有的 CSS 和样式文件,这些文件定义了 Angular 应用程序的外观和样式。
- 所有的图像、字体和其他静态文件,这些文件用于提供 Angular 应用程序所需的所有资源。
- 所有的第三方库和依赖项,这些库和依赖项是 Angular 应用程序所需的所有扩展功能的基础。
浏览器应用程序包可以通过 Angular CLI 或其他打包工具(如 webpack 或 Rollup)生成。它通常包含一个或多个 JavaScript 文件,以及一些其他的资源文件,如 HTML、CSS 和图像文件。
Server Application Bundle
服务器应用程序包是服务器端应用程序的一部分,它包含了 Angular 应用程序在服务器端运行所需的所有代码和资产。服务器应用程序包通常包含以下内容:
- 所有的 TypeScript 和 JavaScript 代码,包括 Angular 应用程序的服务器端渲染代码。
- 所有的模板文件,这些模板文件用于在服务器端生成 Angular 应用程序的初始 HTML。
- 所有的第三方库和依赖项,这些库和依赖项是 Angular 应用程序所需的所有扩展功能的基础。
服务器应用程序包可以通过 Angular CLI 或其他打包工具(如 webpack 或 Rollup)生成。它通常包含一个或多个 JavaScript 文件,以及一些其他的资源文件,如 HTML、CSS 和图像文件。
需要注意的是,服务器应用程序包通常不包含 Angular 应用程序的所有客户端资产,如组件、指令、管道、服务等等。这些资产通常会被打包到浏览器应用程序包中,因为它们只需要在浏览器中运行。
Application application_1512618719369_147804 failed 2 times due to ApplicationMaster for attempt app
今天遇到一个特别怪的问题,之前etl中的hive任务一直报错,持续一上午,也没有查出原因,错误的任务的日志也找到,原本可以找到原因,但是打开日志,心里面一凉,什么报错也没有,不知所错。最后观察报错的节点,最终集中到两台机器,那就看看是不是这两台机器的hadoop的程序引起的吗?看看他们的程序都在,但是查看nodemanager的日志一直报错,并且查看cpu,nodemanager进程占用的cpu达1000%多,马上眼前一亮,知道cpu占用太多,导致ap不能联系,导致任务失败,最后把这两台机器的nodemanager重启一下,观察了一下,任务不在报错。继续努力.............
Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099
Application Server was not connected before run configuration stop, reason:Unable to ping server at localhost:1099
在utuntu中使用IDEA启动tomcat,报错,更改/etc/hosts也没用,更改jmx port也没用,请问这个问题怎么解决!
ApplicationContextException:由于缺少ServletWebServerFactory bean而无法启动ServletWebServerApplicationContext
我已经使用Spring Boot编写了Spring Batch应用程序。当我尝试在本地系统上使用命令行和类路径运行该应用程序时,它运行良好。但是,当我尝试在linux服务器上运行它时,出现以下异常
Unable to start web server; nested exception isorg.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
下面是我的运行方式:
java -cp jarFileName.jar; lib\* -Dlogging.level.org.springframework=DEBUG -Dspring.profiles.active=dev -Dspring.batch.job.names=abcBatchJob com.aa.bb.StartSpringBatch > somelogs.log
答案1
小编典典解决方案是:
我明确下面的属性设置为none
在application.yml
文件中。
spring: main: web-application-type: none
答案2
小编典典可能你缺少@SpringBootApplication
Spring Boot入门类。
@SpringBootApplicationpublic class LoginSecurityAppApplication { public static void main(String[] args) { SpringApplication.run(LoginSecurityAppApplication.class, args); }}
今天关于Server Application Unavailable的分享就到这里,希望大家有所收获,若想了解更多关于Angular 应用的 browser Application 和 server Application bundle、Application application_1512618719369_147804 failed 2 times due to ApplicationMaster for attempt app、Application Server was not connected before run configuration stop, reason: Unable to ping server at localhost:1099、ApplicationContextException:由于缺少ServletWebServerFactory bean而无法启动ServletWebServerApplicationContext等相关知识,可以在本站进行查询。
本文标签: