I am trying to integrate the monitoring tool JAMon into my current Spring application. Everything is fine except I don't know how to establish the monitoring information on UI or log file. What is more confusing, is from here
under the section "Setting up the JAMonAppender - Default Behaviour", I see this line:
Install JAMon.war in your application, so you can view your Log4J
statistics and log records.
is there anyway that I can install a war file in current application or there is something wrong with above description?
My understanding is the war file should deployed in an application server. Can I use it as a dependency?
My understanding is the war file should deployed in an application
server. Can I use it as a dependency?
Any WAR file must be deployed in an application container. It cannot be used as a dependency. For your sake, you missed point 1, where you can download the API with all its dependencies here.
Related
I need this file to authorize my API request to an external service. My app is deployed in Elastic Beanstalk with a WAR package and my file is stored in WEB-INF/lib but when I route my service to this address nothing is happening. My java classes are stored in WEB-INF/classes and its subfolders (due to packages). Should I use any absolute address instead of a relative one? Any ideas about what may be happening?
My build.xml file to generate War package with ant:
Looks like you are missing dependencies. I have never seen this issue when building a web app using Spring BOOT and Maven. As well, when building with Maven/Spring BOOT, I always ensure to use spring-boot-maven-plugin that builds an executable JAR file which includes the dependencies.
TO learn how to create a basic Java app with Dependencies and deploy to the Elastic Beanstalk, see this AWS tutorial.
Creating your first AWS Java web application
I spended a few hours to resolve my problem with deploying jar file on tomcat but I lost all fights, and I must ask one question:
Is it possible to run the jar file via tomcat in intelliJ?
Best regards
It's not possible deploy a jar in Tomcat anywhere. You can only deploy war files.
Normally when you distribute a web application in a jar (like a spring boot app) you don't deploy it in a server, it's a standalone application you run from the command line.
I have EAR file (which includes a WAR file and EJB jar file) was deployed on Web-Logic(10.3.6) successful.
Now, I have updated EAR file and I redeploy again follow steps: delete old files on the server and install new EAR file without restart server. Every file have been deployed in Active state. But I got some exception related EJB injection. Then I restart Web-logic, my app is running fine.
What's wrong with the redeploy way?
Thanks in advance for any Help...
Weblogic has an lots of documentation about this topic. Sometimes it's referred to as a "hot deploy" or an "in-place" deploy. In the weblogic admin console there is an option to update an ear file rather than what you are doing with the delete->redeploy method.
Just make sure to update your Weblogic-Application-Version property in the MANIFEST.MF of your ear so that weblogic knows it's a new version. Here are some useful links:
Oracle redeploy documentation
An older but still valid list of steps to hot deploy
That said - the problem you are seeing may be something different and your question will need to be updated with more details if the Oracle docs don't help.
I have a Java Web project (Struts + Spring) working perfectly in my localhost. I have to deploy it on my website, but the Tomcat Manager interface given by the webhost says it cannot upload a WAR file due to safety reasons. When contacting the tech support I was told it is not possible to upload a WAR and that I should try deploying my project by uploading the files directly (I have FTP access).
My problem is that no one at the tech support gave specific instructions on where I should put my project files (I don't know if it should be on de same folder the WAR would be sent to) neither how to start/stop it (Will the Tomcat Manager recognize it once I upload the files?).
You can always try to upload a war file to webapps folder of tomcat.
if tomcat is running with autoDeploy set to true it will auto deploy your application.
i think that the same will happen if you upload the exploded war to the webapps, the context will be the name of the directory you put your files in.
Just place your apllication's root folder to the Tomcat's directory webapps and configure tomcat to auto deploy. Restart the server and your application will be deployed.
You transfer the files to the same place as the war file would go - but just as an expanded war.
Whether or not tomcat will recognise that the files have changed depends on the configuration of the tomcat server. I'd just give it a go - transfer the files and see what happens. If it doesn't pick up the changes then you'll need to find out from tech support how to restart tomcat.
I am more into UI dev and less into Java...So, I would like to understand what exactly does the following things mean;
1. Build Deploy (Is it just a folder coped to a server and if yes, are there only class files in there,...)
2. What does exploded build mean?
If someone could explain me in very easy language (and not extremely technical), that would be really great...
Also any online resources in simple language would be helpful..
Thank you.
Build Deploy
Build deploy process will include many things such as
a) Checking the server configurations like database configurations, server resources configurations etc.
b) Checking the Application Configurations , means any changes in the application related configuration files.
c) Deplying the code on to the server
during this process server will read up the deployment descritor and deploy the application based on the configuration provided in DD xml (web.xml)
Also it deploy the ejb modules based on the configuration provided in ejb-jar.xml
Build Deploy
You build your application into some packaging and deploy it on the server.
for example if its web app you pack it in war file and put this war file on the server webapp for tomcat (dir differs from server to server) and start the server to deploy it.