简体   繁体   English

部署示例应用程序

[英]Deploying example application

I am trying to deploy the example form based authentication application to my glassfish server, but everytime I launch the application, I am redirected to yahoo, saying that 我正在尝试将基于表单的示例身份验证应用程序部署到我的glassfish服务器,但是每次启动该应用程序时,我都会重定向到yahoo,说

The requested URL "http://localhost:8080/com-byteslounge-jaas/" cannot be found or is not available. Please check the spelling or try again later.

Anyone have any ideas? 有人有想法么? I downloaded the source straight from here: 我直接从这里下载源代码:

http://www.byteslounge.com/tutorials/jaas-form-based-authentication-in-tomcat-example http://www.byteslounge.com/tutorials/jaas-form-b​​ased-authentication-in-tomcat-example

You can also launch Server Domain Console ( http://localhost:4848 by default) and there, in Applications section, You should have Your app listed. 您还可以启动服务器域控制台(默认情况下为http://localhost:4848 ),在“应用程序”部分中,您应列出您的应用程序。 You can see the URL to Your app either by clicking it's name or by clicking Launch link on the right. 您可以通过单击应用程序的名称或单击右侧的启动链接来查看该应用程序的URL。

The example in your linked article describe the URL is http://localhost:8080/com-byteslounge-jaas-1.0-SNAPSHOT , have you ensured you deploy the app to the same context path you're requesting? 链接文章中的示例描述的URL是http://localhost:8080/com-byteslounge-jaas-1.0-SNAPSHOT ,是否已确保将应用程序部署到请求的相同上下文路径? Check glassfish log to see what context path your app is deployed as 检查glassfish日志以查看您的应用程序部署为哪种上下文路径

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM