I m trying to deploy a WAR application on my server using Tomcat 8.
I put the WAR file in the webapps directory, modified the server.xml but I can't access the application.
I connect to the Tomcat manager and I can see my application but when I try to start it I got the message
FAIL - Application at context path /bo could not be started
In the Tomcat logs there's the following error:
28-Apr-2016 10:16:01.060 SEVERE [localhost-startStop-3] org.apache.catalina.core.StandardContext.loadOnStartup Servlet [cxf] in web application [/bo] threw load() exce$
java.lang.StackOverflowError
Can you help me?
Related
I am trying to deploy ASP.NET Core Hosted Blazor Webassembly Application in a Windows Server 2016 (in AWS).
The application gets hosted without any error in IIS. But while the application reaches the code section related to verifying a certificate instance I get the following exception:
One or more errors occurred. (Access is denied.)
I have also tried the same in Windows 10 Pro and the exception is not thrown. In Windows server 2016, I have tried running the application directly using executable and it works as expected and exception is not thrown in this approach.
I have also launched the IIS with administrative privileges and still the issue persists. Does this problem arise due to Windows user access privileges? How can I resolve the above mentioned exception?
I created two ASP.NET Core web applications - just API templates:
ASP.NET Core 2.2
ASP.NET Core 3.0
Deployed these applications to the Windows Server 2016 with latest (3.0 Runtime & Hosting Bundle). ASP.NET Core 2.2 works correctly without any problems, but ASP.NET Core 3.0 gives me this error from image below.
In event viewer I found error every time when I deploy or try to start 3.0 application:
Application 'C:\Inetpub\vhosts\webapp.com\httpdocs\' failed to start. Exception message:
Unexpected exception: status: Access is denied.: "C:\Program Files (x86)\dotnet\dotnet.exe"
I just copied directory path with adding executable file to the command prompt, and this command opens localhost listener:
> C:\Inetpub\vhosts\webapp.com\httpdocs\WebApp.exe
Then I can access to the webapp directly on server over localhost and port. I tried also to change directory permission but I didn't fix the issue.
For me specifically I fixed this issue with adding web.config in application and replacing AspNetCoreModuleV2 to AspNetCoreModule, but this is not perfect solution.
Another solution is deploying application as Self-Contained.
I have created Spring MVC application without web.xml, completely using the java configuration but when I right click on the project I am not getting an option as Run on server which usually helps me to deploy my war into Tomcat 8.
I have developed several ASP.NET 4.5 applications and I want to publish them to a remote computer running IIS 8, using Web Deploy.
I created two sites in IIS8, Site1 and Site2. I created a single IIS User and I gave permission to access both sites to this user.
I can publish the first site via Web Deploy, but I cannot publish the second site.
When I try to publish the second site, I get this error in Visual Studio
2>Start Web Deploy Publish the Application/package to https://27.147.144.98:8172/msdeploy.axd?site=NSU ...
2>Adding ACL's for path (NSU)
2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets(4255,5): Error : Web deployment task failed. ((6/30/2015 12:36:37 PM) An error occurred when the request was processed on the remote computer.)
2>
2>(6/30/2015 12:36:37 PM) An error occurred when the request was processed on the remote computer.
2>The server experienced an issue processing the request. Contact the server administrator for more information.
2>Publish failed to deploy.
The first site is published correctly always. The problems occurs only for the second site.
I had this error but also had Fiddler2 running which seemed like it was interfering with the deployment. When I closed it, things worked again. Make sure you test the connection beforehand.
I have successfully deployed an EJB 3 module and a JSF WEB app which calls the EJB module's beans using netbeans IDE locally. Now when I try to deploy this in staging environment, i get the following error:
root cause
javax.servlet.ServletException: com.sun.enterprise.InjectionException: Exception attempting to inject Unresolved Ejb-Ref com.store.managedbeans.CustomerManagedBean/customerService#jndi: com.store.service.CustomerRemote#null#com.store.service.CustomerRemote#Session#null into class com.store.managedbeans.CustomerManagedBean
root cause
javax.naming.NameNotFoundException: com.store.service.CustomerRemote#com.store.service.CustomerRemote not found
I have deployed the EJB module and Web application in glassfish v2 (in the staging environment).The jar of the EJB Module is inside WEB-INF/lib folder of web application. It looks like the web app cannot find the EJB module. The classes are annotated with #Remote. And I am calling interfaces and not the bean by using #EJB. And of course, this worked find when I deployed it under Netbeans.
From the comments:
The EJB Module was referencing a JMS Queue Connection Factory. The resource hadn't been created in the staging glassfish server. Although the EJB module was allowed to be deployed, the JNDI Log from the console reveals that none of the EJBs were bound to any names because of a problem in deploying the module.