Tomcat Hot Deploy not working - tomcat6

I'm having an issue hot deploying a new WAR on my Tomcat 6 server.
When I add in my new WAR I can see that Tomcat is attempting to deploy it. However, I believe the problem lies in undeploying the old war - the exploded war folder's contents are all deleted - except the WEB-INF folder.
If I stop the server, delete the WEB-INF folder and then start again, my war is deployed correctly.
Can anyone suggest anything which may be happening here?
Thanks.

Found the solution, the problem lies in the fact that Windows locks the folder when Tomcat is running. To remove this locking, just edit context.xml in the Catalina Home, change
<context>
to:
<Context antiJARLocking="true" antiResourceLocking="true">

Related

How do I install phpmyadmin in Aegir?

In which folder should I put phpmyadmin folder in aegir system?
In a old project I remember an expert developer used to put the phpmyadmin folder under the folder /var/aegir/hostmaster and it worked (through the url panel.example.com/phpmyadmin).
I am now trying same thing but it doesn’t work. Should I modify some file or some setting to “read” the folder hostmaster? (I have tried to change permission but it didn’t help).
In this new server I am using Nginx.
In the old one (when everything was working) there was Apache.
It can be a problem of configuration of Nginx?
Thank you

How to create a react project war and deploy it on jboss?

I know there are many articles on google about this but in some cases they are keeping react(frontend) + springboot(backend) together in a single war, but my requirement is different I want to keep the both wars as separate.
So what I tried till now,
Directly adding the react build folder in jboss->standalone->deployment but it does not work, it works on tomcat but not on jboss
Then I created a new dynamic web maven project and renamed react build folder and added it to maven project webapps directory and created a war, but after deployment its giving 403 error, and I am not getting why.
Here is a snapshot of my folder structure, pom file and error on browser
Please help regarding this have been stuck at it for days now with jboss
Is there any other way to do it, I will be happy to change my approach.
tried this also, did not worked
https://www.megadix.it/blog/create-react-app-servlet/
spring boot comes with default tomcat, you can exclude from the dependency
https://spring.io/blog/2014/03/07/deploying-spring-boot-applications
https://dev.to/jakmar17/deploy-spring-boot-on-wildfly-application-server-2029
I have the same problem and I haven't found a good solution. The best I found is to create a dynamic web project in eclipse. Copy the build files into webContent and use HashRouter instead of BrowserRouter with basename equal to the project name. Finally compile and generate the war. I hope the advice helps you.

Apache CXF installation options into Tomcat

I want to be able to use Apache CXF with Tomcat. I have copied CXF's jar files into WEB-INF/lib and then I am able deploy my WAR file into Tomcat. That WAR file works fine in Tomcat, but that WAR file is then not usable in IBM WebSphere Liberty JEE server. I want to build my WAR files, such that they are write ones run any were.
The CXF app server configuration guide has no mention about Tomcat; the Metro project suggest that it's own jar file be copied into Tomcat's endorsed folder. Can the same be done for CXF? What is the best practice?
Best practice for a Tomcat deployment is to package the CXF jar files in the WAR file. It should also work as part of Tomcat's lib folder but I don't know many deployments using that.
Maybe you should take a look at Apache Tomee to have a combination with Tomcat and CXF?

GAE appcfg.py deploy always upload all files (instead changed only)

I've started to have a problem today.
Everytime I run appcfg.py update . it updates 441 project files.
Even if I just modified 1 it will upload 442.
running appcfg.py update . twice will upload 441 files every time.
This is obviusly a problem because instead uploading a couple of files it is uploading a lot of them and taking a lot of time.
This is what I have tried:
Updated app engine launcher to it latest version
Rebooted
removed all files from the folder, download them again from git
nothing seems to work.
I even left only app.yaml and index.php and it uploaded both files every time, even if I do not change anything.
Ideas? thanks
This is expected behavior. Uploading the files are always fast for me.
it is fixed now.
At the moment of this answer, google seems to have fixed the issue.
Just tried to deploy and it only uploaded the modified files.

Pycharm Run server error no app.yaml file at '.' for google app engine project

I'm pretty new with Pycharm and since this morning i have tried different configuration to use the Run command with an existing Google app engine project but without success.
I have a pretty clear error :)
google.appengine.tools.devappserver2.errors.AppConfigNotFoundError: no app.yaml file at '.'
Nothing wrong with that because the existing project use a custom file call app_dev.yaml. So it's normal that Pycharm is unable to load the server.
How can i change this behaviour and tell Pycharm to use app_dev.yaml instead of app.yaml?
Is it possible?
Thanks
I input an app.yaml on root directory and reloading my project, this working for me.
While the PY-9714 issue was, indeed, closed without a resolution, the automatic '.' added to the Run configuration has been reconsidered in PY-10675 in light of GAE support for multiple modules/services inside the same application and/or request routing using a dispatch.yaml file.
So in the more recent PyCharm versions it's possible to specify one or more .yaml files as options in the Run configuration. See for an example Pycharm multiple modules Run server
For those still running an older Pycharm version without the fix, a solution using a wrapper script is described in Run App Engine development server with modules in PyCharm

Resources