We are using Tomcat 7.0 and we want to switch to tomcat 8. There was a parameter in Tomcat 7.0 org.apache.catalina.startup.ContextConfig.jarsToSkip but it does not work in tomcat 8.0.
Any idea ?!
Long Story
Our web application provides some web-services. We used the webservices-rt-2.3.1.jar to implement web services. The jar has a servlet named WSServletContainerInitializer which extends ServletContainerInitializer this auto starts by Tomcat. This was not what we wanted, so we used the org.apache.catalina.startup.ContextConfig.jarsToSkip=webservices-rt-2.3.1.jar to force Tomcat to skip this jar.
You may be looking for the JarScanFilter which is new in Tomcat 8. It's much more flexible than the all-encompassing jarsToSkip setting in Tomcat 7.
Related
I'm trying to migrate some EAR-files from Apache Geronimo 3.0.1 to Apache tomEE 7.0.2.
The only reason to migrate is the "death" of Geronimo and it's lack of Java 8 Support and tomEE looks like its successor.
I was able to get the server running in eclipse 4.6.3 and deploy a new dynamic web project but I can't create a EAR-project for tomEE.
Do I have to change the EARs (containing multiple .war-files) into single .war-files? It seems like tomEE has EAR-support (http://tomee.apache.org/deploying-in-tomee.html) but I can't find any info how to create one that will work.
Thanks for your support!
you can define where is your ear using in tomee.xml and then just drop your .ear in tomee.base/apps.
I have a problem when using Tomcat 8.5 with Eclipse. If I comment a java method, I get the error below, and also if I restart the server I cannot get synchronized. The only way to get synchronized is to restart Server.
I am using:
- tomcat 8.5.x
- Eclipse mars 2
- Java 8
- Tomcat manager plugin for eclipse, i cannot add tomcat server as usual because of the architecture of the project.
Any suggestion to solve de problem?
I am responding because I have found the solution.
First of all, the best practice is to created a Dynamic Web Project as suggested, but due to economic reasons (current architecture is installed and configured on a large number of servers and mantained by different prsons) we cannot change it.
The problem was in a class using a native Sun package and the use of the class JPEGImageEncoder that was deprecated after Java 6. Removing the use of that class and configuring ant to use java 7 and downgrading the jdk configured in Tomcat Manager Plugin from JDK 8 to JDK 7, after the deploy, the problem disappeared.
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.
I am developing a new web application to be deployed on a tomcat server. There is another application running on that server with an older grails version (2.2.4). I don't want to upgrade it. Is there any issues to take into account while developing / deploying the new application (with grails version 2.4.4). They will run side by side.
Thanks for any help.
It depends where you have your grails libraries. If they are part of another application WAR file you will not have issues as you can pack your own libraries in your application WAR. Each application will use it's own copy of grail libraries.
But if you have your grial libraries as a part of system libraries of tomcat (eg. tomcat/lib ) you can have issues as those libraries are added in classpath for all applications.
I am having trouble using my local JBoss Web 2.1.9.GA instance within my local Eclipse installation as a Server Runtime Environment.
Our client uses JBoss Web 2.1.9.GA instead of a standard Tomcat 6 installation, and so I am required to test and debug with a local JBoss Web 2.1.9.GA instance. Now, I am aware that JBoss Web is simply a rebranded and only slightly modified version of Tomcat 6, but when I try to use the "Apache > Apache Tomcat v6.0" server runtime as my choice, and then select the server base folder on my machine, I receive the following error at the top of the dialog:
The Apache Tomcat installation at this directory is version 2.1.9.GA. A Tomcat 6.0 installation is expected.
I am unsure how to get this working as it is intended to work at this point; there doesn't seem to be any options that will accept a JBoss Web 2.1.9.GA server folder. There also seems to be practically zero information online concerning the use of JBoss Web within Eclipse.
For context, I am using the SpringSource Tool Suite v2.9.2.RELEASE pre-packaged Eclipse install on a MacBook Pro running OS 10.7.4. It shouldn't matter however, java is java, and Eclipse is Eclipse, yes?
Has anyone had experience and luck with this?
Tom Harris
(I posted this question on Feb 22, but there was still no answer on March 5, so I am appending this note and rewording the question a bit.)