tomcat8

Aspect fails with ClassCastException trying to pointcut Tomcat DataSource getConnection

假装没事ソ 提交于 2019-12-13 07:06:47
问题 I need to execute several initialization statements on each borrowed connection from a Tomcat JDBC Pool. I cannot use JDBCInterceptors because pool is shared with other applications that won't need said initilization. I'm using Spring Boot 1.4.4, deploying on Tomcat 8.5.11, which has a ResourceLink in context.xml to a Resource in server.xml that defines the DataSource against a Oracle 11g Database. I'm accessing the DataSource via JNDI. As per this answer https://stackoverflow.com/a/38746398

JNDI NameNotFoundException after Tomcat 8 upgrade

别说谁变了你拦得住时间么 提交于 2019-12-13 06:36:07
问题 I upgraded from Tomcat 8.0.18 to 8.0.23 and all of the sudden I have a JNDI issue. I looked at the changelogs, Tomcat 8 Changelogs, and I see three JNDI changes, though none strike me as something that would break a previously working configuration. JNDI related changes were made for bugs 49785, 57587, and an entry under 8.0.19 under "Other". I am receiving this exception when I start up Tomcat with 8.0.23: javax.naming.NameNotFoundException: Name [jdbc/MyCluster] is not bound in this Context

How to debug java project compiled with ant in eclipse?

亡梦爱人 提交于 2019-12-13 02:50:05
问题 I have a java website hosted in a debian VPS server. When I write new code, I test the web app in my local machine, before to deploy it. In the VPS server I have ant installed, so I always compile my code in the VPS server and then I put the generated WAR file in the webapp folder of tomcat installed in my local machine to test. To compile the source code with ant I write the followings commands. ant fetch-deps ant I need to debug my web app with eclipse. I'd like to have a debug

Tomcat server not working anymore after a stop and restart

橙三吉。 提交于 2019-12-13 02:49:55
问题 I've got an error related to tomcat server. I shut down my server (took a while) and then when a start the server back, an error appears : org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [com.amadeus.security.CCDVAccess@2a9cce4a] with key 'CCDVAccess'; nested exception is javax.management.InstanceAlreadyExistsException: com.amadeus.security:name=CCDVAccess org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625)

Error while trying to deploy WAR on Tomcat8 on Ubuntu 15.04

感情迁移 提交于 2019-12-13 02:04:25
问题 I am trying to deploy a .war file using Tomcat8, Apache, and Ubuntu 15.04. When I click "Select WAR file to upload" in the /manager section of tomcat I get the following error: FAIL - Deploy Upload Failed, Exception: java.io.FileNotFoundException: /opt/tomcat/webapps/musicStore.war (Permission denied) How would I fix this? 回答1: Converting comments to an answer, adding more information: Your /opt/tomcat/webapps directory belongs to someone (execute ls -l /opt/tomcat/webapps to see whom it

How to resolve java.lang.IllegalStateException: No Java compiler available for configuration options compilerClassName

流过昼夜 提交于 2019-12-12 16:16:54
问题 How to resolve java.lang.IllegalStateException : No Java compiler available for configuration options compilerClassName . I use embedded-tomcat 8.0.46 and spring 4.3.10.RELEASE java.lang.IllegalStateException: No Java compiler available for configuration options compilerClassName: [null] and comp iler: [null] at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:231) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:578) at org.apache

Tomcat thowing NoSuchMethodError for Nio2Endpoint.setSocketOptions after start serving

谁说胖子不能爱 提交于 2019-12-12 11:55:03
问题 I have just updated a server where an exception started to happen after the application starts and tomcat starts serving requests. I changed the connection to verify if there was an isue with it as well but the same happened: 19-Apr-2018 20:31:38.833 SEVERE [http-nio2-8080-Acceptor-0] org.apache.tomcat.util.net.Nio2Endpoint.setSocketOptions java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer; at org.apache.tomcat.util.net.SocketBufferHandler.reset(SocketBufferHandler

Tomcat 8 Examples: Missing Configuration Step

旧巷老猫 提交于 2019-12-12 10:02:38
问题 I'm trying to set up the "Echo" websocket example on Tomcat 8. I believe I am missing the step where you tell tomcat about the websocket classes. Here's what I have done: Created a new dynamic web project in Eclipse, added maven, and linked tomcat 8 runtimes Copied EchoAnotation.java, EchoEndpoint.java, ExamplesConfig.java, and echo.xhtml into the project. Started the app. When I start the app, I can navigate to the echo.xhtml file, but no matter what url I enter, I can't seem to figure out

Getting an error as “Could not initialize class sun.net.www.protocol.http.HttpURLConnection” in ZK Framework

删除回忆录丶 提交于 2019-12-12 05:48:22
问题 My code is below : home.zul <?page title="Home" contentType="text/html;charset=UTF-8"?> <zk> <window title="Home" border="normal" maximizable="true" height="488px" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('com.company.login.HomePage')"> <borderlayout> <north height="80px"> <hlayout> <div> <a image="/Image/books.png" id="image" onClick="@command('getImage')"/> </div> <space width="600px"/> <menubar id="menubar" width="100%" autodrop="true"> <menuitem label="Home" /> <menu

Tomcat not shutting down when Spring boot app is deployed with ehcache

自古美人都是妖i 提交于 2019-12-12 05:17:02
问题 I have strange problem with tomcat, I have a spring boot application deployed on tomcat(Stand alone not embedded). I am able to start tomcat successfully and it is working fine with out any issues. But when I run shutdown(invoking shutdown.sh script) it is showing connection refused. I have tried out this Tomcat doesn't stop. How can I debug this?, but does not solve my problem. I have tried removing my spring boot application and it is working fine with out any issues. I am able to start and