tomcat7

Why am I getting a 404 requested resource not available error from Tomcat 7

牧云@^-^@ 提交于 2020-02-03 04:40:31
问题 I have recreated this project in Eclipse as many ways as I can think of and continue to get this same error- HTTP Status 404 - /SpringTest/hello type Status report message /SpringTest/hello description The requested resource (/SpringTest/hello) is not available. Please help me find the issue in my code below. web.xml - <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com

servers tab not visible in eclipse v3.7.2

做~自己de王妃 提交于 2020-02-02 03:40:08
问题 Hi i have developed a app which accesses the mysql database for login verification but my problem is that to include tomcat 7 server. In the path Windows>Show view>Other i am not able to see the servers tab. I am also not able to update the web tools platform. 回答1: Windows ->Customize Perspective ->Command Group Visibility -> check Server if it is unchecked. make sure you have added tomcat to eclipse if you don not have then add it.below steps will help you. Window > Preferences > Server >

Issue with RequestDispatcher including JSP programmatically in Weblogic 12c

。_饼干妹妹 提交于 2020-02-01 22:50:29
问题 I'm struggling with the following situation: In our current web application running on Tomcat 7.0.64, we manage to include a JSP page via Java with the help of an own class CharArrayWriterResponse implementing HttpServletResponseWrapper . The reason for doing so is that we wrap the resulting HTML into JSON needed for an AJAX Response. Dependencies: <dependency> <groupId>javax</groupId> <artifactId>javaee-web-api</artifactId> <version>7.0</version> <scope>provided</scope> </dependency>

Debugging in maven with mvnDebug command

佐手、 提交于 2020-01-29 17:47:52
问题 I read this: Debugging in Maven? I'm running intellij remote debug and maven for a service I'm trying to debug. I'm running mvnDebug tomcat7:run Which gives me the following result Preparing to Execute Maven in Debug Mode Listening for transport dt_socket at address: 8000 ^Ctai-m:sb-api-internal-server tai$ m My problem is that I want to change the port easily. I know that I can go into the pom.xml file and change it or that I can do the following in: mvnDebug.bat @REM set MAVEN_OPTS=-Xdebug

Debugging in maven with mvnDebug command

纵饮孤独 提交于 2020-01-29 17:45:33
问题 I read this: Debugging in Maven? I'm running intellij remote debug and maven for a service I'm trying to debug. I'm running mvnDebug tomcat7:run Which gives me the following result Preparing to Execute Maven in Debug Mode Listening for transport dt_socket at address: 8000 ^Ctai-m:sb-api-internal-server tai$ m My problem is that I want to change the port easily. I know that I can go into the pom.xml file and change it or that I can do the following in: mvnDebug.bat @REM set MAVEN_OPTS=-Xdebug

Access Session variable from iframe

房东的猫 提交于 2020-01-25 04:22:05
问题 I have a jsp where I set a session variable. <% session.setAttribute("user", CrossSession.getUser(token)); %> But when I try to read the session variable "user" within another jsp - which got loaded in an iframe (same host, server, etc.) - then I just get NullPointerException <%= session.getAttribute("user").toString() %> How can I get my session variables in iframes? 回答1: Some browsers are quite restrictive as to sharing cookies with the iframe, particularly Safari. One way of bypassing this

Instrumentation: Casting org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper to oracle.jdbc.OracleConnection

Deadly 提交于 2020-01-25 00:22:07
问题 I'm trying to instrument my jdbc connections. I know there are several similar questions about this topic. I tried everything but couldn't find the propper way to solve my issue so far. Also tried the answers to this question, with no result: Apache Commons DBCP connection object problem, Thread: ClassCastException in org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper I'm working with Tomcat 7 and Java 7. Here's where I define the oracle connection pool in my context.xml

Issue with using bouncycastle libraries to enable TLSv1.2 for JDK1.6 running on Tomcat7

烈酒焚心 提交于 2020-01-22 02:27:52
问题 I am trying to make api calls from my apache tomcat7 server running jdk1.6 (on an aws ec2) to aws api gateway private endpoints inside my vpc. Such private endpoints only allow TLSv1.2. I am using jdk1.6.45 (which does not have TLSv1.2 support OOTB) and there is no possibility of upgrading due to other constraints. I am attempting to use bouncy castle jce and jsse providers so that I can create https connections to the api gateway using HttpsUrlConnection object. I am having issues with the

How to redirect to external website on 404 Tomcat

此生再无相见时 提交于 2020-01-22 00:47:25
问题 I am using spring 3 + Tomcat 7 In web.xml I have defined <error-page> <error-code>404</error-code> <location>/filenotfound</location> </error-page> But i want to redirect to external url say www.google.com instead of /filenotfound . How can I do that ? 回答1: I am not sure whether giving the direct url in location will work. But you can put a jsp there and redirect to the url from the jsp. <error-page> <error-code>404</error-code> <location>/filenotfound.jsp</location> </error-page>

ClassNotFoundException oracle.i18n.util.LocaleMapper on tomcat TLD scanning. ojdbc7 maven dep (xmlparserv2-12.1.0.2.jar transitive) causes this error

不打扰是莪最后的温柔 提交于 2020-01-21 15:23:07
问题 I am receiving an error when running my spring-boot application with embedded-tomcat (haven't tried with server tomcat yet). java.lang.IllegalStateException: Tomcat 7 reflection failed at org.springframework.boot.context.embedded.tomcat.SkipPatternJarScanner.scan(SkipPatternJarScanner.java:77) at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:271) at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:590) at org.apache.catalina.util.LifecycleSupport