FAQ Database Discussion Community


Add previously deleted Tomcat 7 server in Eclipse

eclipse,eclipse-plugin,tomcat7,m2eclipse
I'm using Eclipse Luna & I added Tomcat 7 server from Eclipse. But then I deleted it & now I cannot add it back. When I click, add new server & select Tomcat 7, the server name is coming empty & I don't see "Finish" button enabled to add this...

How to change Tomcat 7's server timezone?

java,tomcat,timezone,tomcat7
My application deployed in a Debian vps in US, Los Angeles. So code like new SimpleDateFormat("yyyy-MM-dd HH:mm").format(new Date()) will return current time of America/Los Angeles. Can I do some setting in Tomcat's configuration file (server.xml or catalina.sh or what?) so that get current time will return a specified TimeZone like...

Tomcat v7.0 Server at localhost failed to start (Only with specific WebApp)

java,tomcat,tomcat7
I get the above error when I'm trying to start the server. Important note, for any other Web Apps the server starts just fine. It's just this particular Web App that does not work. Here is the complete stack trace: SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed...

Eclipse & Tomcat - Class loading

java,eclipse,tomcat,tomcat7,eclipse-luna
I have recently migrated a Java Client project to a Java Server project, using Tomcat, I have found that project library dependencies may be broken. Ordinarily I include the Libraries into the Java Build Path via the Eclipse menu option. I store the Libraries in the project \lib folder. When...

How to add JVM arguments to Tomcat?

java,tomcat7
I am using Tomcat 7 and I want to add the following JVM argument: -Xbootclasspath/p:PrintServiceFixer.jar I added the aforementioned JVM argument in the tomcat windows application but it didn't work. I received the following error message: WARNING: Bootstrap: command "-Xbootclasspath/p:/Path to Jar file/PrintServiceFixer.jar" does not exist. Why isn't this working?...

Streaming an upload with HttpClient/MultipartEntity

java,servlets,proxy,tomcat7,apache-httpclient-4.x
I've got a Tomcat instance right now that takes uploads and does some processing work on the data. I want to replace this with a new servlet that conforms to a similar API. At first, I want this new servlet to just proxy all of the requests to the old...

Deploy vaadin 7 war file in EC2

amazon-ec2,tomcat7,vaadin,war,vaadin7
I'm trying to deploy a Vaadin 7 example.war file in tomcat 7, using an EC2 server. I upload the file to /var/lib/tomcat7/webapps but then when I go to myIp:8080/example it doesn't find the resource. Any idea why? Thanks!...

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoadListener

java,eclipse,spring,tomcat7,classnotfoundexception
I have been struggling with this problem for a few days now (That is why I am providing GitHub link). Here is the stack trace: SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoadListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoadListener at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547) at...

There is no “Run on Server” option on eclipse to run the project on Tomcat

eclipse,maven,spring-mvc,tomcat7
I have a maven project that wants to run on Tomcat 7; however, when I right click on the project name there is no option other than Java Applet, Java Application, JUnit Test, Maven related options and Run Configurations. Please let me know if you need any further information that...

Catalina.out not logging after edition by bash script

linux,bash,logging,tomcat7
This is a tomcat7 installation with the default logging configuration, the catalina.out is only being rolled out when we restart the server. As it is prod server we can not restart it very often. We have a huge number of entries going to that file which causes our catalina.out to...

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

java-ee,tomcat7,axis2
I work on a web application, I created a web service with axis2 I integrated this web service in my application, but the problem is that when I try to retrieve the wsdl via the following URL: http: / / localhost: 8080 / ConsoleSynoptique / services / listServices. I get...

Using Mod_proxy Redhat 6 Apache 2.2.15 to Tomcat 7 multiple java webapps issue

linux,apache,tomcat7,redhat,mod-proxy-ajp
I have an apache 2.2.15 front end trying to pass code to tomcat7 with mod_proxy to fire off two different webapps with different base paths. I think I'm close, but I'm still not getting a web page returned. I'm getting the 404 requested resource not available. I am sure hoping...

SolrException Plugin init failure for [schema.xml] fieldType “pint”: Error loading class 'solr.IntField'

apache,solr,tomcat7,bigdata,solr-schema
I am getting this error collection1: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core collection1: Plugin init failure for [schema.xml] fieldType "pint": Error loading class 'solr.IntField'. when i am trying to import collection 1 (solr 4.5) schema to solr 5.1. I only copy collection 1 from different machine where solr 4.5...

Slow startup on Tomcat 7.0.57 because of SecureRandom

java,tomcat7
I'm using Tomcat 7.0.57 on CentOS 6.6 32 bit and openJDK7. When I start 14 different instances of Tomcat on my server(production environment), many of them take too much time to start. This is part of the startup log, which tells me where is taking all the time Jan 28,...

What is meant by “ Ubuntu server using MySQL and apache Tomcat 7 ”

apache,ubuntu,tomcat7
My project is " Deploy your project " On-line Travel Deal : on an Ubuntu server using MySQL and Apache Tomcat 7 .. What is meant by .. " Ubuntu server using MySQL and Apache Tomcat 7 " ??...

Tuckey UrlRewrite: ClassNotFoundException after changing urlrewrite.xml

java,tomcat,tomcat7,tuckey-urlrewrite-filter,urlrewriter
I'd like to be able to change the rules in urlrewrite.xml without restarting the server. I am running Tomcat 7. In web.xml I have... <filter> <filter-name>UrlRewriteFilter</filter-name> <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> <init-param> <param-name>confReloadCheckInterval</param-name> <param-value>120</param-value> </init-param> <init-param> <param-name>logLevel</param-name>...

Tomcat 7 PermGen Space or Failed to Create JVM

java,eclipse,tomcat,tomcat7,permgen
I'm currently searching for any help about this. I'm trying to start a Tomcat 7 server, but I only get PermGen Space exception. I tried to change the XXMaxPermSize value, but when I change it, I get a Pop Up at launch of my Eclipse : "Failed to Create the...

Could not open JPA EntityManager for transaction […] A connection could not be obtained for driver class “null” and URL “null”

java,jdbc,tomcat7
I'm having an issue connecting to my DB in a Spring based web application hosted on Tomcat 7. In my search for a solution I've found many people who have had similar issues but none of their solutions seem to work for me. I'm developing in Eclipse (RAD 8.5). Here...

Can´t find jbpm workbench distribution zip to deploy in tomcat7

tomcat7,jbpm,kie-workbench
I'm trying to deploy jbpm 6.2.0 on kie-workbench in tomcat7 In jbpm documentation it says: From the workbench distribution zip, take the kie-wb-*.war that corresponds to your application server: jboss-as7: tailored for JBoss AS 7 (which is being renamed to WildFly in version 8) tomcat7: the generic war, works on...

Openshift Scaling Tomcat7 with Stored Files and Images

tomcat7,openshift,openshift-client-tools,openshift-enterprise,openshift-cartridge
If I have a Gear which contains Files and Images uploaded by Users, will the directory be Shared across all Gears? or will it be synced after every User upload? If not, is there any workaround? Can I manually sync all Gears after every user upload/delete/change in the upload directory?...

Unable to load class javax.servlet.jsp.el.ImplicitObjectELResolver$ImplicitObjects

eclipse,jsf-2,tomcat7
when i run my project an error occurs this is the stack : mai 05, 2015 4:39:22 PM org.apache.catalina.startup.ContextConfig checkHandlesTypes WARNING: Unable to load class [javax.servlet.jsp.el.ImplicitObjectELResolver$ImplicitObjects$6] to check against the @HandlesTypes annotation of one or more ServletContentInitializers. java.lang.ClassNotFoundException: javax.servlet.jsp.el.ImplicitObjectELResolver$ImplicitObjects$6 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678) at...

cPanel with Tomcat 7 installation successful but not showing /usr/local/jakarta folder under root

java,tomcat7,cpanel,whm,website-hosting
I have successfully installed Tomcat 7 using cPanel on IWEB server. I got the installation successful message too. I am able to hit the tomcat home page using www.domain.com:8080 and it directs me to Tomcat's home page. You may take a look at http://67.205.89.174:8080/ The main challenge is, in order...

Starting multiple tomcat instances in one server with init.d script

centos,tomcat7,multiple-instances,init.d
I'm trying to configure tomcat init.d start script to work with multiple instances (at this time 2 instances) I'm following below sample script to create init.d script #!/bin/bash # # tomcat This shell script takes care of starting and stopping Tomcat # # chkconfig: - 80 20 # ### BEGIN...

How to configure Tomcat7 `server.xml` for non-standard war-file location

xml,tomcat,tomcat7,server.xml,context.xml
I want to have this directory structure for Tomcat7 apps: /var/lib/tomcat7/webapps /foo /current -> /var/lib/tomcat7/webapps/foo/releases/1.1 /releases /1.0 /1.1 /shared ... Where current is a symlink to the actual current version of the app. As a consequence I believe I need to add a context to my server.xml file, like so:...

java.net.BindException: Cannot assign requested address

java,tomcat7,ubuntu-12.04,snmp
I want to use low port in my application (SNMP Trap Receiver on Spring web + Tomcat7). As I told in this thread Binding Low Port to Java Program on Ubuntu Server, before, I got error Permission denied. Then I change tomcat7 user group be root. But after that, I...

Increasing Tomcat server start up time

tomcat,tomcat7
I want to increase the server start up timeout in tomcat. Will increasing the connectionTimeout parameter in the Connector tag in server.xml work?

Setting 404 Error page for JSP

jsp,nullpointerexception,tomcat7,web.xml
I am trying to set a custom error-page in jsp. I am getting an error and I cannot figure out why. I have researched plenty of posts and I cannot seem to find an answer. When I visit a page that should throw me a 404, it sends me to...

How to deploy artifacts from S3 into tomcat using S3 and deploy plugin?

jenkins,amazon-s3,tomcat7
I have a Jenkins server doing builds and saving the artifacts to AWS S3 using job 1. I'd like to now create a another job in Jenkins that will deploy those artifacts from S3 onto a tomcat server using deploy plugin. I've got the S3 plugin installed and the deploy...

set timezone for tomcat

timezone,tomcat7,openshift
I've got issue with this file .openshift/action_hooks/pre_start, the text is export JAVA_OPTS_EXT="-Duser.timezone=Europe/Stockholm" but new timezone does't work. It's not changing. Any help, with this? Thanks...

Stuck OpenShift Application

tomcat7,openshift
My application hang up. Because of that I wanted to delete the application but it's not possible. OpenShift just shows me: "Unable to perform action on app object. Another operation is already running" when I want to delete the application from the web interface. Unable to perform action on app...

Hibernate Session null-pointer exception

java,spring,hibernate,oracle11g,tomcat7
I have been stuck with this issue for days cannot figure it out, I mean I know the sessionFactory must be null as the stacktrace indicates but I cannot understand why? The exception always comes back to the line: Session session = hibernateUtil.getSessionFactory().getCurrentSession(); Here is a trimmed version of the...

Tomcat 7 WAR deploy LifecycleException

apache,tomcat,liferay,tomcat7,catalina
I'm trying to deploy a war file - Liferay web application via Tomcat Web Application Manager. The following exception is thrown "Adresár alebo súbor neexistuje" means "Directory or file does not exist" in the code below SEVERE: Error copying /tmp/tomcat7-tomcat7-tmp/1-is_nco to /tmp/tomcat7-tomcat7-tmp/2-is_nco java.io.FileNotFoundException: /tmp/tomcat7-tomcat7-tmp/1-is_nco (Adresár alebo súbor neexistuje) at java.io.FileInputStream.open(Native...

Liferay homepage is not found after starting the server in Eclipse

eclipse,tomcat,liferay,tomcat7,liferay-6
I have set up a Liferay Tomcat Server in Eclipse. After the server starts and I go to localhost:8181 (where I configured the server), the page is empty. Also, if I right click the server in Eclipse and select Open Liferay Portal Home, a 404 Page Not Found is displayed....

Cargo:run If you specify a containerId, you also need to specify a containerUrl

maven,tomcat,tomcat7,maven-3,cargo
I am trying to run tomcat though cargo. Tomcat is already installed. cargo:deploy is working fine but when I try cargo:run I get the following error If you specify a containerId, you also need to specify a containerUrl. If I specify a containerURL I get the following error [ERROR] Failed...

Deployment Error for JAX-WS Webapp

tomcat7,jax-ws
Bit of a strange one here, that has me completely blocked. I have a webapp, with some JAX-WS annotated classes. Also, when the webapp is deployed, a third party framework is initialized, using a listener ThirdPartyContextListener in web.xml. So far so good. (For info, the framework is responsible for ORM,...

The method getPart(String) is undefined for the type HttpServletRequest

java,jsp,servlets,jstl,tomcat7
I have been working on Java web project in which i need to upload an image through the JSP page and store it into a MySQL database. I'm entering the image in multiparts which is available for Servlet 3.0 or above. I've been using the getPart("image") to get the image...

Return specific HTTP response status in JSP

jsp,tomcat,tomcat7,httpresponse
I want to have a custom error code in my JSP, to prevent a special condition from happening: boolean error; // do error checking here if (error) { throw new javax.xml.ws.http.HTTPException(400); } However, this ends up throwing a 500 to the client, since the server interprets the exception as an...

tomcat UnsupportedClassVersionError

java,osx,tomcat,intellij-idea,tomcat7
I have a bitnami Tomcat 7 installation (apache + tomcat + mysql) on my Mac, with uses java 1.7 76. My Mac uses the java 1.8 runtime. When I deploy my project (made in intellij on the same Mac) to tomcat and try to run it I get a UnsupportedClassVersionError....

403 error only in chrome, works fine in FF and IE

google-chrome,tomcat7,http-status-code-403
I have an application, when I clicked login button, I got an 403 error, and it only happens in Chrome, works fine in all of the other browsers. Here is the log I found from the tomcat log file (localhost_access_log.2015-03-11.txt): 0:0:0:0:0:0:0:1 - - [11/Mar/2015:20:27:42 -0700] "POST /app/login/do_login HTTP/1.1" 403 -...

How to diagnose why a web server with idle applications becomes unresponsive?

performance,tomcat,java-ee,tomcat7
I have a Digital Ocean droplet (512MB RAM, 20GB SSD Disk, Ubuntu 13.10 x64) on which a MongoDB instance and a Tomcat 7 server run. On the Tomcat server, following applications are installed Apache CXF-based application, which takes processes web service requests, interacts with the database and executes scheduled jobs,...

How to bypass root folder name in apache tomcat server url?

spring-mvc,tomcat7
I want to access the url with out having to mention the name of the root folder in spring MVC project. EXAMPLE: http://localhost:8080/hospitalManagement/user-->http://localhost:8080/user Do i need to make any modifications in web.xml file?...

Two remote debugging methods

java,linux,eclipse,tomcat7,remote-debugging
I have a ubuntu server and my app is running in tomcat7. Now I have two methods of remote debugging, as a learner I want to know what is the technical difference between the two or are they both same and I am missing something? Method 1: open file /etc/default/tomcat7...

WELD-001201: Error loading beans.xml + Tomcat 7.0.59

java,tomcat,tomcat7,cdi,weld
I have one application using CDI with weld 2.2.9.Final and embedded Tomcat 7.0.57 and everything works fine. After upgrading to embedded Tomcat 7.0.59, when I'm starting my application I got the following exception: Caused by: org.jboss.weld.exceptions.IllegalStateException: WELD-001201: Error loading beans.xml jndi:/localhost/WEB-INF/beans.xml at org.jboss.weld.xml.BeansXmlParser.parse(BeansXmlParser.java:124) at org.jboss.weld.bootstrap.WeldBootstrap.parse(WeldBootstrap.java:131) at...

Deploying Grails applications on Tomcat is slow

tomcat,grails,tomcat7
I have a number of different web services developed using the Grails framework (version 2.3.7). Each web service does different things, some simple, some more complex. Some have only a few dependencies (plugins etc.), others many. For production, I deploy each service/application on Tomcat 7, each on a different VM....

Cannot Locate JNDI Resource Tomcat 7

java,tomcat7
Everything works fine in eclipse on my test machine, but when I deploy the WAR to the server I receive "Cannot locate JNDI Resource" errors on each attempt to connect with the database. I am using a resource within WEB-INF/context.xml. The mysql-connector-java-5.1.25-bin.jar is located within the lib folder of the...

liferay portlet non-liferay JNDI data source null

oracle,tomcat7,jndi,liferay-6,portlet
For a Liferay 6.2 custom portlet accessing a non liferay Oracle database we are running into an issue where the data source returned is null. We have configured the tomcat/conf/context.xml <!-- Adding custom New non liferay datasource --> <Resource name="jdbc/NewPool" auth="Container" type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST...

How to connect to Tomcat7 JMX over SSL using catalina-ant?

ant,tomcat7,jmx
I have configured Tomcat JMX over SSL (similar to this Getting JMX working under Tomcat 7 with SSL and a self-signed cert) Now I am trying to execute jmx:open or jmx:get according to the following documentation: https://tomcat.apache.org/tomcat-7.0-doc/monitoring.html Unfortunately, I cannot specify the trust store and therefore I get the following...

static weaving eclipselink jpa with spring and tomcat

spring-mvc,jpa,tomcat7,eclipselink,compile-time-weaving
I am trying to achieve static weaving with Eclipselink+Spring+JPA using maven. I have configured my spring project with Java Configuration, no context.xml. I tried following things: In persistence.xml: Added following weaving specification. <property name="eclipselink.weaving" value="static" /> In DBConfig.java, I have configured beans as follow : @Bean() public DataSource getDataSource() {...

Building Sakai 2.9.1 on Tomcat 7 [closed]

java,tomcat7,jdk1.6,sakai
I am using Sakai 2.9.1, Tomcat 7.0.59, JDK 1.6, MySQL 5.5, Maven 3.0.5 and Windows XP. The build of Sakai into Tomcat has been successful, and when I start Tomcat, I get a lot of errors and Sakai doesn't load. All environment variables have been configured, too. INFO: Deploying web...

Error reading log4j.properties in my Maven project

java,logging,jersey,log4j,tomcat7
I have a problem with log4j. I'm trying to use this for logging in a file some actions in my Rest Web Service. I am developing the web service in java with jersey framework. I am using Eclipse and a Maven Project. I've created my MWlogs.properties and placed under src....

tomcat log4j relative path

log4j,tomcat7
Log4j works well in my application,but one strange thing happened because of my starting tomcat in different directory.Please see my following description: The tomcat server path is /application/servers/tomcat7.0.41. In my application, I define a relative log file in log4j.xml: ../logs/test.log When I start the tomcat in the directory: '/application/servers/tomcat/' with...

Remote debugging with screen capture

user-interface,gwt,tomcat7
I wanted to know if there is java libray or framework to enables remote debugging via screen capture . The application is developped in GWT running on tomcat. What i want is , whenever any exception happens a screen shot is taken of the UI where the error is located...

Apache tomcat issue with Eclipse dynamic web module 3.0

java,spring-mvc,tomcat7
I created Spring MVC project with default configurations it was working/running on the server but when I changed Project Facets to J2EE 6 as following : now when I run the project I get following message UPDATE Please see this project structure : Controller.java is @Controller public class HomeController {...

Tomcat, enable DELETE method

tomcat,tomcat7,http-delete
This question is asked before How to make Apache Tomcat accept DELETE method, but the solution it provides doesn't work for me. I've added <init-param> <param-name>readonly</param-name> <param-value>false</param-value> </init-param> to web.xml and my <servlet> setting looks like this: <servlet> <servlet-name>default</servlet-name> <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class> <init-param> <param-name>debug</param-name>...

f:viewAction ignored, when commandButton navigates to page

jsf,tomcat7,jsf-2.2
I have a problem with the JSF 2.2 Feature <f:viewAction action="#{...}/>. I placed this tag in my XHTML-Page, it's called viewActionStart.xhtml: <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"> <h:head /> <h:body> <f:view> <f:metadata> <f:viewAction action="#{redirect.getView()}" onPostback="true"...

Maven, tomcat7, Simple Web App. java.lang.LinkageError: loader constraint violation

maven,java-ee,tomcat7
I'm following directions from book "Introducing Maven, Apress", to create a simple web app: HelloWorld!! in a JSP . With Maven and Tomcat7 and using following artifact: (by the way I'm using win7) mvn archetype:generate -DarchetypeArtifactId=maven-archetype-webapp The structure created is as follow: gswm-web |_pom.xml |_src |_main |_resources |_webapp |_WEB-INF |...

Intellij remote tomcat print to console

intellij-idea,console,tomcat7
I'm learning java webdevelopment and I'm using tomcat 7. I set everything up so that I can remotely debug (breakspoints seem to work) my deployment on a remote tomcat server using IntelliJ. My book on webdevelopment states that I can use System.out.println() in most IDE's to print to the console....

log4j2.xml sys vs env on Desktop application and in Tomcat Webapp

tomcat,logging,tomcat7,environment-variables,log4j2
I have both a dekstop application and a tomcat web application that write to a log file using log4j2. I also then have the log4j2.xml configuration file. The file it is writing to is held within a folder that as stored as an environment variable. The log4j2.xml file thus looks...

Deploying web application OpenShift Eclipse JBoss Tools

java,eclipse,tomcat7,openshift-client-tools,jboss-tools
For the first time I`m trying to deploy my web application on Openshift free hosting with JBoss Tools in Eclipse and nothing happens :) my domain: docs-velichko.rhcloud.com/ the end of my log when importing application: http://mirror.ops.rhcloud.com/nexus/content/groups/public/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar (422 KB at 2600.6 KB/sec) [INFO] Packaging webapp [INFO] Assembling webapp [SpringMVC6] in [/var/lib/openshift/55644f6ee0b8cd41470000de/app-root/runtime/repo/target/Mazurov20]...

Web service Response processing taking too much time

java,web-services,jaxb,tomcat7,xfire
I am consumeing a web service which is based on soap over HTTP on one of my Servlet/JSP base web Application on Tomcat 7. I am using Codehaus XFire eclispe plugin which generate client stub from WSDL and insert depending libraries for me. Code are in the form Service name...

Spring war file deployed on ec2 showing hibernate persistence failure connecting to rds

mysql,hibernate,amazon-ec2,tomcat7,rds
Our company has an app that has been hosted on media temple, we since are moving to amazon ec2. I've been through all tutorials, and got apache, php, mysql, java, and tomcat7 running just fine. Also, I have been able to connect to the rds instance with mysql workbench. However,...

spring WARNING: Request method 'HEAD' not supported

java,spring,spring-mvc,tomcat7
I receive warning message per second after successful deployment on tomcat 7: org.springframework.web.servlet.PageNotFound handleHttpRequestMethodNotSupported WARNING: Request method 'HEAD' not supported but application works. How to avoid this annoying message? ...

Setting CORS for a Tomcat7 / Geoserer deployed on OpenShift

tomcat7,cors,openshift
I followed Steven's excellent tutorial to setup Geoserver on a Tomcat7 gear on Openshift. This works relatively well. The main issue being that the gear doesn't restart. I build the gear three times now. The first two times the gear did not come alive again. I waited a few good...

Tomcat support for HTTP/2.0?

tomcat,https,tomcat7,tomcat8,http2
Does anyone know what is the lowest version of Tomcat that supports HTTP/2.0? I've been looking everywhere on their site and I cannot find any details regarding this.

Tomcat7 ignores java.util.logging in logging.properties

java,logging,tomcat7,apache-shindig
My tomcat7/shindig instance is completely ignoring the config in logging.properties file. I have the following specified ./WEB-INF/classes/logging.properties: handlers=java.util.logging.FileHandler,java.util.logging.ConsoleHandler .handlers=java.util.logging.FileHandler,java.util.logging.ConsoleHandler .level=ALL java.util.logging.ConsoleHandler.level=ALL java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter java.util.logging.FileHandler.level=ALL...

How does Eclipse know if a Tomcat server is running?

eclipse,tomcat,tomcat7,eclipse-wtp
I've run into an odd situation with Eclipse Luna on Centos. I have configured a Tomcat 7.0 server, using project metadata for the configuration file. (actually TomEE, but I don't think that should matter). When I start the server from within Eclipse, I can see in the console window that...

MultiPartFeature with javax.ws.rs.core.Application

java,web-services,rest,jersey,tomcat7
I'm trying to upload a file using Jersey but I'm facing a lot of trouble. I saw that i have to configure MultiPartFeature to make things happen but I couldn't make it work. I understand that i have to enable multipart feature on jersey but that's the problem. I tried...

Upgrading from tomcat6 to tomcat7 giving errors AbstractMethod Error

java,tomcat,tomcat7,tomcat6,abstract-methods
I have upgrade the tomcat version from tomcat6 to tomcat7 for my web application. On click of a button, AbstractMethod Error is thrown on the page. Here is the snapshot : javax.servlet.ServletException: java.lang.AbstractMethodError org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:916) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:845) com.web.console.jsp.editCDTemplate_jsp._jspService(editCDTemplate_jsp.java:203)...

Securing tomcat7 - Disabling RC4 does not work

ssl,tomcat7
I'm trying to secure my tomcat 7 setup. I have currently two problems here comes my first one: I use basically the default configuration, I just extended the ssl configuration to get an A rating on SSL Labs. My problem is that I want to disable RC4 since it is...

How can I get my batch script to run a set of commands if apache-tomcat is running?

batch-file,tomcat7
I am using apache-tomcat 7 to host a web app locally for development. The issue I'm having is that I want my batch script to shutdown the possibly running other instances of tomcat. But I only want to try to shutdown tomcat if it is currently running. Anyone have any...

Cannot start Tomcat 7.0 in Eclipse

java,eclipse,tomcat,tomcat7
I cannot start my tomcat 7.0 server instance The following is the stacktrace for the error. Mar 05, 2015 11:38:26 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jdk1.6.0_17/bin/../jre/bin/client;C:/Program Files/Java/jdk1.6.0_17/bin/../jre/bin;C:/Program...

Should I upgrade to Tomcat8 from Tomcat 7

tomcat,tomcat7,tomcat8
My project is currently running on Tomcat 7. Should I go for upgrade to Tomcat 8? What are the pros and cons of doing that? is tomcat 8 better in terms of performance, memory utilization?