Disable web app auto-reloading in standalone Jetty server - java

How can I disable .war auto-reloading in Jetty server?
This question addresses the problem, but its for Jetty Maven, while I am using standalone version.

Look for the scanInterval in the WebAppProvider configuration and set it to 0 to disable hot deployment.
http://www.eclipse.org/jetty/documentation/current/hot-deployment.html

Related

How to configure pivotal tc in Eclipse to use log4j configuration instead of its own loggingmanager?

In Spring Tool Suite's (STS) version of Eclipse, Pivotal TC insists on using its logging manager, which subterfuges my log4j.xml .
Part of my running the server in the IDE is to ensure that the whole package including spring and logging config in dev will work in dev server as in production Tomcat. Besides other tests, I also need to test the log4j.xml config.
But Pivotal TC circumvents and subterfuges my use of log4j.xml and so I need to find a way to remove that pivotal tc behaviour. I wish to know how to tell pivotl tc to use log4j.xml.
Since STS already provided a Tomcat, I see no point in installing another Tomcat.
I assume you are using tc Server 3.2.x with Tomcat 8.5 in STS?
log4j is no longer supported on Tomcat 8.5. You will need to use log4j2 and use the standard log4j2 mechanism to capture
java.util.logging output and redirect it.
If my assumptions are incorrect, please provide more information about the versions and env you are using.
Thanks.

How to embed OpenEJB in existing Tomcat installation

I have a current install of Tomcat 8. I'd like to add EJB support to it. But when I searched online for how to embed OpenEJB into Tomcat, I only found TomEE results and nothing about plain Tomcat. I'd prefer not to have a dedicated EJB server running, but to instead run the EJBs on the same JVM as Tomcat and my application. How should I go about doing this?
The absolute best way to do that is just to download Apache TomEE, which nothing more than Tomcat with OpenEJB already embedded in it! :)
You can add tomee webapp into your tomcat (through server.xml is fine), ensure you have tomee-loader in common.loader through catalina.properties and add in server.xml org.apache.tomee.loader.OpenEJBListener in the server.xml Listeners.

Remote Deploy Java EE to Linux Wildfly Server

I had completed my java ee application with postgres on my Windows development machine. Now, I would like to deploy it to CentOS linux.
However, the concept wasn't as straight forward as I think.
I had to export my project as .war file, then install Wildfly, install Postgres, setup Datasource in standalone.xml, then deploy in Wildfly Console. It seems too much work (especially setting up datasource).
I used to work with Ruby on Rails, where we have a git source control, and we just git pull on the server to deploy, but things don't seems that straight forward for Java EE.
Am i missing something?
Thanks
If your app is a Maven app, you can use the Wilfly Maven plugin to deploy on a Wildfly server running locally or on a remote server: https://docs.jboss.org/wildfly/plugins/maven/latest/
Here is an excellent blog post that describes how to configure your Maven settings and your pom: https://docs.jboss.org/wildfly/plugins/maven/latest/

project running from eclipse(Juno) Jboss but not from standalone Jboss 6 AS

To all Jboss experts!
I'm in the process of upgrading an old Java web project that used to run under Jboss4. I'm using eclipse/maven and jboss6 AS as dev tools.
Now here is my issue. I'm able to build and run the war file on the eclipse Jboss server. But when I'm running (copy and paste the file to the server deploy Dir) the same file on a standalone Jboss server the Ejb bean are not being installed and of course cannot get bound to the JNDI.
Any reason why this is happening?
Am I missing any jar file that I should be added to the server Library?
Thanks

Debug my web application using ant

I am currently developing an MVC Application using Java EE Technologies and Eclipse as an IDE. To run my server and deploy my application I am using ANT. I would like to know how can I debug my Java Code through the ant tool or eclipse.
Add the following jvmarg options to your tomcat start command:
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=5000,server=y,suspend=n"/>
You will be able to attach the Eclipse debugger on port 5000, using the Remote Java Application debug category.
You can do that from eclipse:
enable debug on tomcat
create a new debug configuration in eclipse that connects to tomcat
See here for details.
But it is not a good idea to use ant to start tomcat in development. Use Eclipse WTP to start your tomcat and deploy applications on it.

Categories