Wildfly 9.0.2 on AIX server : application deploys but don't load for customers - jsf-2.2

We have a JEE application ( with JSF 2.2 PF & RF ) that we have deployed for many of our customers.
We have it deployed on jboss 4, wildfly 8 and recently we HAD to use wildfly 9.0.2 on an AIX environment.
The application is deployed without issues but when accessing it the browser keeps fetching. On my laptop it actually work "sometimes" but the main issue I found is some images keeps fetched with status pending. I tried many browsers so I don't think it's browser related, it's not application related I can guess too.
I gave file access rights to the files.
Any ideas or suggestions plz ?

Related

Error when running two web applications at the same time in tomcat

I have a web application (maven) which uses mariadb as a database and I'm deploying the app with Tomcat on a Raspberry Pi.
Since I wanted to create and deploy a similar version of the original application. I slightly modified the application (which has originally been created by another person). The only change that I made to the application was to connect it to another database instance on my Raspberry Pi, by changing this line:
spring.datasource.url=jdbc:mariadb://localhost:3306/myDatabase2_db
Of course, I created a database by the name of "myDatabase2_db" on the Raspberry Pi in advance. And I also changed the name of the WAR-file to MYAPP2, so that the two applications have different names.
My goal was to deploy the original application and the modified version as completely separate applications (with different databases), but on the same Tomcat instance on my Raspberry Pi.
My observations so far:
(1) If I stop the "original" application in Tomcat and AFTERWARDS deploy the "modified" application and try to run it, it works without any issues.
(2) Only when I try to run both applications at the same time in Tomcat, it always displays the following error in tomcat:
FAIL - Application at context path /MYAPP2 could not be started FAIL -
Encountered exception org.apache.catalina.LifecycleException: Failed
to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/MYAPP2]]
So far, my guess is that this happens because I used the same code basis for both applications and only changed the above-mentioned 1 line of code. Do I for example have to change something in the pom.xml file or somewhere else?
The problem is just that I didn't create the original application and only have a very limited unterstanding of maven, mariadb and tomcat. I would really appreciate if someone could explain what is happening and how to resolve this issue.
Thanks in advance!

War file working on my PC but 404 error with older Tomcat

I had to develop an app with Flutter for my dissertation. The app was an update and an extension of an old app devepoled by another student of my university, 2 years ago.
He developed also the backend that was written in Java using Spring and Maven.
Developing my app, I had to do some changes and additions in his code.
Some days ago I tried to export the backend project as a war file compiling with the JDK 15 (during the developing I used the Intellij's build-in Tomcat to test the new features) and I did the deploy on my Tomcat and I got error 404.
After reading many posts about this error on this site I found the solution by simply installing and compiling with java 12.
At that point, excited by the idea of finally being able to use my application and start the tests necessary for my thesis, I deployed the same war file to the Tomcat running on university server and I got error 404 again:
"HTTP Status 404 - /backend-api/
type Status report
message /backend-api/
description The requested resource is not available.
Apache Tomcat/7.0.52 (Ubuntu)"
I tried to install the same JDK (1:7:0 79) that was used by the developer of the backend during his dissertation, but the problem wasn't solved.
In the second anwser of this thread it seems that they are talking about a similar problem, the point is that I can't modify any setting of the server of my univeristy and, right now, I can not even access to the logs of Tomcat.
I think the problem may be an outdated version of the JDK or Tomcat running on the university server.
But what seems strange to me is that the old version of the backedn is still running on that server and working without problems, and I have not made any changes to the configuration files, but only added a couple of functions.
Do you have any suggestions for me to solve the problem or understand what the cause is?
In a few days I should graduate and without my backend the application is not usable.
On my PC i deployed the war file on Tomcat 7.0.107 with JVM version 1.8.0_271-b09, while the university is running Apache Tomcat / 7.0.52 (Ubuntu) with JVM version 1.7.0_79-b14.
Thanks a lot to anyone who takes their time for trying to help me.

How to get rid of this error when starting Tomcat

I am adding some things in an existing Android app, which connects to a Apache Tomcat server to get information from a database, but some of the changes required that I also make minor changes on the webapp (changing some database fields).
I had never used tomcat, but managed to do the simple changes here and there.
But when I deployed it, I noticed some errors(see the photo).
How can I fix them ?
The app works regardless of them, but the server takes a few more seconds to start up.
P.S.I read somewhere that this means that the server already has these libs, and doesnt need to use the ones from the lib folder of the app ?

Deploying applications to Web Logic production Server

I am here to get some expert advice on deploying applications to WebLogic Production Server.
Is it a best practice to use Admin Server Console for deploying and redeploying applications in production. Actually I am deploying to a cluster having two managed server instances.
I have encountered this issue while i am redeploying application in the production. When i am deleting existing .ear file and adding updated .ear file will put the updated .ear file into prepared state. I can not make it Active state using Admin Server Console. If i try it will through some exceptions. But after some time it automatically goes in to active state, but i don't know what is happening inside. Sometimes i restart the server to make it active. Could anybody explain me what is the procedure when deploying application and redeploying applications in weblogic
Thanks in advance for any Help...
Generally WLST (WebLogic Scripting Tool) is used to deploy the applications. Administration Console can also be used to deploy/upgrade the applications but if there are many environments that need to be upgraded then WLST (which works like a command line tool) is much better option.
Get an overview of WLST to know how to use it to deploy/undeploy/upgrade applications.
Check out "Understanding WebLogic Server Deployment" and the "Redeploying Applications in a Production Environment". There are different factors that affect redeployment of an application which you might be running into.
http://docs.oracle.com/cd/E23943_01/web.1111/e13702/understanding.htm#i1057116
http://docs.oracle.com/cd/E23943_01/web.1111/e13702/redeploy.htm#g1039635
Additionally, there is a WebLogic Plug-in for Maven in more recent WebLogic releases that you can use for deployments in conjunction with Maven.

Oracle JDBC web service in Apache Tomcat 5.5 can't authenticate with DB

I installed a java web service on a machine that accesses an Oracle DB via JDBC on the same network. The service was functioning fine for several months until this morning when I installed another applicaiton that access the database using ODP.NET. I'm trying to figure out what went wronge to cause the ORA-01017 exceptions that I'm getting. This generally means that the login credentials are invalid, but the login credentials haven't changed. I also verified it the service's log4j output that it is indeed still trying to connect to the DB correctly.
I realize I don't have much to go off of here, but I'm trying to figure out what other dependencies that. The web service came packaged with ojdbc14.jar, so that tells me that it targets java1.4, but presumably would work fine in later java versions. Not too sure about it working with later java versions, however, it was working fine until today.
Does OJDBC rely on tnsnames.ora. If it depends on how the service uses OJDBC, then I'm not sure which it is doing. I suppose it's possible I deleted the tnsnames.ora, but that is a bit of a longshot. I also tried manging Apache Tomcat (running on Win Server 2003 x64) to target different java jvm versions, but to no avail. It was initially targeting the default jvm.
Are there other dependencies that I've missed here, or any diagnostic measures I could try? THe same web service is running on another machine on the same network which I am pretty sure is configured exactly the same. Again, it was working on both machines until today, and is now just working on the one.
Tomcat targets JDK 7.
Looks like replacing ojdbc14.jar with ojdbc6_g.jar did the trick. No idea why it was the case only for 1 of the 2 machines. ojdbc6 targets JDK 6, but ojdbc14 did, and should have continued to work. If anyone has any additional insight here, let me know.

Resources