Weblogic application on a cluster behavior - java

I have an application that successfully deploys to Weblogic Server. I've configured cluster and wanted to start this application on a cluster, but sometimes I am facing such a situation.
1st node - application runs and there isn't any errors.
2st node - shows me 404 error.
How is that possible that 1 application can successfully work on 1 node and show 404 error on the second one?

Sorry for late answer and thanks to #Kyouma.
The problem was in JMS server.
I had such a configuration:
1 Machine that has 2 servers united in a cluster.
JMS Server that was targeted to 1 server from the cluster.
JMS Module that was targeted to the same server.
The problem was, that I had *.war file configured to both servers in a cluster.
When the first server was starting - everything was fine, because during Topic bean creation he could find those topics. But the second server couldn't find them, because JMS server in general was not in Running state.
So the solution is:
1. Have no *.war files in the Deployment menu.
2. Start all servers in a cluster.
3. Install *.war file in the Deployment menu.
E.R. Application have been deployed.

Related

Wildfly force redeploy NOT working / HTTP Connector port is already in use [duplicate]

This question already has answers here:
Netbeans does not know that Wildfly already started
(2 answers)
Closed 1 year ago.
I am using NetBeans and when I run the server for the FIRST time (even if I restart my computer) it gives me an error: "WildFly Application Server Start Failed. HTTP Connector port 8080 is already in use.". When I run my project, the server should restart and my web app should redeploy to it, but that does not happen. Instead the mentioned error occurs.
Q: What is on the port 8080?
A: It's the Wildfly Application Server
Q: How do I know it's is the Wildfly on the port 8080?
A: I can access the admin wildfly console on the port 9990 and when I kill the process (through the terminal) that is listening on the 8080 port I can not access the admin wildfly console anymore.
Q: Did you configure wildfly as a service so it boots as soon as your computer boots?
A: No, I did not configure it that way. I even check in the services (it runs manually, not on boot)
People with the same problem:
LINK1 , LINK2
I managed to fix it by deleting the wildfly server from my file system and downloading the same version from the Wildfly website. My guess is that some configuration file has become messed up for some reason. If anyone has a better solution please suggest it.

Unable to start tomcat 8 on ubuntu 16.0.4 TLS

I have written an application on REST API's and deployed that on tomcat 8.0.36. When I start the application from eclipse it gives me a timeout message after 45 seconds "Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor."
I have done all the troubleshooting stuff:
1) Deleted the server from the server perspective and re-added the server and tried to re-deploy it
2) get the same message as above.
3) I have tried by launching the tomcat without the application deployed it starts .
Regards
Vilas
To increase the tomcat boot time, you must follow the following steps:
Launch Eclipse
On Servers view, double click on you tomcat server configuration
Find the option Timeouts, this is in the top right of editor
Increase the time, for example 120.

How to configure Wildfly 9 to failover HTTP sessions

I'm really struggling to configure Wildfly 9 to cluster/failover its sessions...
I keep reading that wildfly in standalone-ha mode will automatically discover peers and automatically share sessions, but it's clearly not working for me.
I have setup 3 AWS EC2 servers which all have the same configuration. They all run the same versions of everything and have the same webapp .war file deployed to each of them. This webapp works fine, I can log in to the app which maintains a simple session variable to verify that I am logged in. I've launched each server with standalone-ha.xml configuration files but logging into one doesn't allow be to access the session in any of the others.
I've tried all the things I can think of, but don't know how to diagnose the issue as I don't know how the servers identify each other.
I've manually deployed the war file on each server but placing the file into .../standalone/deployments/
Each has a fully open firewall...
Oh - I set the muticast address on the command line to 230.0.0.4 (That number came from a guide, and I have literally no understanding of it) and each is bound (-b) to the internal IP of the server...
Any help appreciated...
First you must consider that in AWS EC2 multicast traffic is not allowed and thus MPING will not work.
See http://developer.jboss.org/wiki/JGroupsS3PING
An example how to implement S3Ping http://aws.typepad.com/awsaktuell/2013/10/elastic-jboss-as-7-clustering-in-aws-using-ec2-s3-elb-and-chef.html

Websphere 7 - How to know EARs ports deployed in the same Server Instance

I'm currently deploying 2 EARs in the same Server Instance. The first one can be accessed in the port 9081, but the second one can't. Is there any way to know in which port I can get access to the second one? I've been trying to look it up in the Administrative Console but got nothing so far.
If both applications deployed to same Server the port should be same. Confirm from console if application is started and mapped to correct virtualhost. if started fine then please check SystemOut.log for any error when trying to access the application.

WAS 7 Network Deploymen - Servers doesn't start automatically after abnormal shutdown?

I've websphere application server 7 network deployment, and am facing a very strange issue, I've three nodes with three servers, and one deployment manager for the three nodes, if one of the servers stopped abnormally,
it shows a question mark in the deployment manager, and when it come back up, the server service is started, but the deployment manager shows it as stopped, and I have to start it from the deployment manager,
if I stopped the server service manually its status is also a question mark at the deployment manager, but when I started the service again manually, now it's shown as started in the deployment manager,
I can't find any explanation for this strange behavior, your help is appreciated
I found the solution, there's settings for this part, you can reach it from here:
To view this administrative console page, click Servers > Server Types
WebSphere application servers > server_name. Then, under Server Infrastructure, click Java and process management > Monitoring policy.
and then the one corresponding to this behavior is found here: Node Restart State
If this property is set to STOPPED, node agent does not start the server.
If this property is set to RUNNING, the node agent always starts the server.
If this property is set to PREVIOUS, the node agent starts the server only if the server was running when the node agent stopped.
Note: Changes you make to the node restart state become effective
after the node is synchronized. At the next NodeAgent restart (after
the synch), the node restart state will be honored.
and here's a full link for this topic: Monitoring Policy

Categories