"The module has not been deployed. See the server log for details." - ejb

I have been using the tutorial below, and all I get is the error "The module has not been deployed. See the server log for details.".
https://netbeans.org/kb/docs/javaee/entappclient.html
No matter how many projects I create, the same error is still there. When I try to deploy the enterprise application, it goes well. But when I later tries to start the application, it says that the module has not been deployed.

Exception while loading the app
Undeployment failed for context /EntAppEJB-war
Exception while loading the app : java.lang.Exception: Virtual server
server already has a web module EntAppEJB-war.war loaded at
/EntAppEJB-war therefore web module EntAppEJB-war cannot be loaded at
this context path on this virtual server
I had to remove one of the two EntAppEJB-war. It was very simple to solve.

Related

Failed to create CoreCLR, HRESULT: 0x80004005

I had clone a microservices in my local device and when ever I started that project I got that error
IIS Express is running.
Failed to create CoreCLR, HRESULT: 0x80004005
HTTP Error 500.30 - ASP.NET Core app failed to start
Common solutions to this issue:
The app failed to start
The app started but then stopped
The app started but threw an exception during startup
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect
And this error come up in the view try each and everything like check environments variable check and updating Asp.net SDK's
And this error come up in the view try each and everything like check environments variable check and updating Asp.net SDK's
#alvarez response was the solution for me (running asp.net 7 in k8s).
Set the environment variable COMPlus_EnableDiagnostics to 0 in either your Dockerfile or k8s config yaml, and it'll start & run correctly with a readonly filesystem!

Use fs.unlinkSync with full path to remove file in project, it works on local server, but it gives error(5xx) after deployed to azure web app

I have an app that builds with Vuejs and Nodejs server.
I created a folder called 'uploads' in the project to temporary store all of the files that was uploaded to the server.
When the uploaded action is ready, I have a restAPI to clean the file in folder 'uploads' with the given absolute path. I use fs.unlinkSync to remove the temp file in the rest api.
Everything works perfectly on local, but after I deploy to azure web app, whenever the restapi for removing a file is triggered, it gives me 502 bad gateway error.
I have checked a lot of information, still can not solve this problem. Wonder if anyone have experience with it?
Log from Azure Web App
Failed to forward request to application. Encountered a System.Threading.Tasks.TaskCanceledException exception after 300196.724ms with message: The operation was canceled.. Check application logs to verify the application is properly handling HTTP traffic.
Try to use fs.unlink(path, callback), then you can log more error details in callback function.
Suggestion
You also can use try..catch... to get more exception message. Get error details should be useful to you to solve the problem.
About Log from Azure Web App, I'm not sure how you use it, or use the default. The exception caught by the code may be more helpful to you.
If you use linux platform, you can use remote debugging.
Azure Remote Debugging for Node.js

Deploy ASP MVC in virtual directory

I have existing silverlight app which works as IIS application. And i need to deploy ASP MVC app as a part of this (don't ask me why) in virtual directory, not like new IIS application.
I use IIS 6.
I create new virtual directory in existing iis application and use path to ASP project folder as physical path of this virtual directory. But i get error
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.
Parser Error Message: An error occurred loading a configuration file: Failed to
start monitoring changes to 'C:\Users\Alina\Desktop\MVCApp' because
access is denied.
Source Error:
[No relevant source lines]
Is it possible to deploy ASP MVC application in virtual directory?
How to do this right?
Yeah, that should be possible. I'm guessing whatever service account your deployment process is running as doesn't have permission to write to C:\Users\Alina\Desktop\MVCApp.
To prove that out, you could modify permissions on that folder to allow 'Everyone' write access. If that works, figure out what account your process is running as, and grant that read/write/whatever, and remove the 'Everyone' access.
That should get your deployment situation fixed. I can't speak to how the two apps will run side by side. I'd need more info.

Application is not deploying on Glassfish 3.1.2

I made a web service. I have made 2 or 3 services and have deployed these on the glass fish. On each service i used package name like pk.mazars.basitMahmood.calculate, pk.mazars.basitMahmood.weather and so on. Means pk.mazars.basitMahmood is common in all packages name. Now i developed a web service on eclipse and now when i try to deploy it, i am getting the following error
cannot Deploy ResourceAEAR
org.eclipse.core.runtime.CoreException: Deployment Error for module: ResourceAEAR:
Error occurred during deployment: Exception while loading the app :
java.lang.Exception: WEB0113: Virtual server [server] already has a web module
[AndroidBackendAuthentication.war] loaded at [/AndroidBackendAuthentication];
therefore web module [ResourceAEAR#AndroidBackendAuthentication.war] cannot be
loaded at this context path on this virtual server. . Please see server.log for
more details.
at com.sun.enterprise.jst.server.sunappsrv.SunAppServerBehaviour.
publishDeployedDirectory(SunAppServerBehaviour.java:859)
...
What is that error mean. How can i resolve it? I also did some google on this error but unable to find exactly where is the problem. So please help :(
Thanks

Upgrading to 2K8 Server, An error occurred loading a configuration file: Failed to start monitoring changes to '\\networkshare'

I moved my site off of a 2k3 server over to a 2k8 server. The site has a virtual directory pointed to a network share which has different credentials than the one used by the site. I set the virtual directory to use the correct credentials and it can browse the share fine through explorer, but when I try to load files (images, etc) through a browser I get the following asp.net error:
Server Error in '/' Application.
Configuration Error Description: An error occurred during the
processing of a configuration file required to service this request.
Please review the specific error details below and modify your
configuration file appropriately.
Parser Error Message: An error occurred loading a configuration file:
Failed to start monitoring changes to '\\networkshare'.
Source Error:
[No relevant source lines]
Source File: \\networkshare\web.config Line: 0
Version Information: Microsoft .NET Framework Version:2.0.50727.5456;
ASP.NET Version:2.0.50727.5456
The network share does not have a web.config.
I tried the solution provided here, but that did not solve the issue and this site isn't using impersonation. Do I need to enable impersonation? This was working correctly on win2k3.
OK, so based on our comments it sounds like this is either a share permissions problem or an NTFS permissions problem (same resolution, different dialog).
In IIS6 you typically had the worker process running as NETWORK SERVICE and that's what you would give permissions to to access shares and files on the network.
In IIS7.5 the application pools now run under an AppPool identity, one specific to the application pool that the website is running under. This link should be helpful: http://learn.iis.net/page.aspx/624/application-pool-identities/
As a quick fix (although I recommend reading up on it) though, you can go into the application pool, go to advanced properties, and set the identity back to NETWORK SERVICE.

Resources