Issue in deploying Grails 3.1.9 application in WebSphere 8.5.5.8 - websphere-8

I am trying to deploy an app developed in Grails 3.1.9 in WebSphere 8.5.5.8
I've generated .war file and installed successfully but, when I'm trying to access through link http://localhost/MyAPP/ following error appears:
Error 404: SRVE0190E: File not found: {0}
I am able to access the static resources in the app as below..
http://localhost/MyAPP/assets/apple-touch-icon.png
Pl. help at the earliest. Thanks in advance.

In WebSphere the application server port is 9080. So try accessing http://localhost:9080/MyAPP/ (you may not have deployed on web server)
Check SystemOut.log for specific issue. If it is related to data source then check the JDBC connection URL. If you are getting any NoClassDefFoundError, then add the corresponding jar in class path. In case of any resource loading issue, check the JDK version of your code and WebSphere.

Related

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

Running same application throwing error in IIS express

I was running a project say ProjectA in visual studio 2015 and for some reason, I have created a copy of that project say CopyProjectA.While running that copied project, i.e
CopyProjectA project it was showing an error
Port number is in use
So for that, I changed the port number of CopyProjectA.
Now, while I run CopyProjectA it's now showing
Unable To Launch IIS Web server.
Failed to register URL "https://localhost:portnumber/" for site "CopyProjectA or Project_Name(1) " application "/". Error description Cannot create a file when that file is already exist (0x800700b7)
Note:
CopyProjectA or Project_Name(1) both are same
Please help me to fix this problem :)
The best way is to create a new virtual directory for the application after changing the port number; this will delete any related configuration caused by the old website.
From the Properties of your application;

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

How to delete web modules from virtual server in glass fish 3.1.2

I developed a web service. When i want to publish it on the server, then i get the following error
cannot Deploy TemperatureConverterServiceClientEAR
Deployment Error for module: TemperatureConverterServiceClientEAR: 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
[TemperatureConverterServiceClientEAR#AndroidBackendAuthentication.war] cannot be
loaded at this context path on this virtual server. . Please see server.log for
more details
I went to directory C:\glassfish3\glassfish\domains\domain1\eclipseApps and delete all the files. I also went to
Then i click on the server. In the default Web module option i have following entries
How can i delete these modules from here. Whenever i tried to deploy webservice i get this message. How can i get rid of this message? I also delete the deployed module from the Application option after which this default Web module option become empty. But then if i try to deploy any webservice , i get the error. Please help
Thank you.
you shold undeploy the old web moudle
use the flow command to do this:
./bin/asadmin --port $port undeploy $app
$port means the "glassfish admin port". when you use start-domain you will see it
$app means the name of the old moudle you want to undeploy, you can use ./bin/asadmin --port $port list-applications commands to see all the web moudles had been deployed to this domain
I had the same problem and I found exist:
go into server/glass fish server (node)/application. And there You've got app blocked Your work. Just delete it, and ready :)
I was having the same problem. I was able to fix it by restarting glassfish. Go to services->Servers. Right click on glassfish and restart. Hope that helps.

Problem:- could not create type

I had made some kinds on web services. These are working fine locally. I uploaded the web services and other required folders and files on the site. When now I write the url for any services then I get a error like
Parser Error Message: Could not create type 'ESL.EslClass'.
I didn't understand, that why this error is coming.
If anyone has any idea for this problem, please reply.
Things to check:
the obvious stuff ...
Do you have the right framework version installed on the server?
Security settings ...
Can the app run?
Can it run all its dependencies?
More complex stuff ...
Is this type in a library within the bin folder of the application?
if not, is the dependant application requirements installed on the
server?
To help you further i would ask ...
Can you get any more detail about the error?
Can you install the remote debugging service on the server and then attach visual studio to it ... that might give you a bit more detail on the error.

Resources