tomcat7

Why is tomcat7 unable to find LoginModule class in JAAS

一笑奈何 提交于 2020-01-07 02:19:08
问题 I have an application packaged in a WAR which is running great on an existing Tomcat6 server. I am now trying to deploy it in tomcat7 but am getting the following error as soon as I run the login action: Failed login. Reason: LoginException: unable to find LoginModule class: security.jass.SimpleLoginModule I have the contents below in the conf file, which is defined in Java's security.properties: UserLoginImpo { security.jass.SimpleLoginModule required; }; Changing the class name here (to a

Tomcat: java.io.IOException : Destination “xxx” directory cannot be created"

你离开我真会死。 提交于 2020-01-06 19:33:24
问题 I would like to do projects backup from one location to another location in network.this sample application has been written in struts. This was achieved by using org.apache.commons.io.FileUtils . My problem here is, when I ran this application in netbeans 6.9 IDE tomcat server its working fine, but when I tried to run this application in apache tomcat 7.0 server by deploying this application WAR file, I get exception like java.io.IOException : Destination "xxx" directory cannot be created"

Axis2 + Tomcat: Web service working directory

依然范特西╮ 提交于 2020-01-06 17:59:43
问题 So I have an Axis2 web service (called "ReleaseService"), which requires a properties file to work correctly. I've deployed axis2 into Tomcat7 on RHEL6 and have a structure like this: tomcat/webapps/axis2 + axis2-web, META-INF, org + WEB-INF + + classes, conf, lib, modules + + services + + + ReleaseService + + + + com, lib, META-INF Thinking about Java, I would expect the working directory to be tomcat/webapps/axis2/WEB-INF/services/ReleaseService , because it contains a lib folder and the

Tomcat deployment file paths (for Java I/O process)

久未见 提交于 2020-01-06 08:03:50
问题 I managed to implement a simple file I/O in my Spring project for files not inside my project (then WAR file) using a .properties file that contains the path (source) and now I need to do it in the server. Before, when I included the files inside the WAR file, I can access them in the Tomcat server using the path /home/my_username/tomcat7/webapps/my_project/WEB-INF/classes/ But now that the files are not inside the WAR file, I just put them adjacent to the webapps folder. The structure of my

tomcatManager status code:404, ReasonPhrase:Not Found

僤鯓⒐⒋嵵緔 提交于 2020-01-06 07:54:46
问题 I had a problem in creating Spring configuration in this topik Now I trying to deploy my war file from IntelliJ IDEA to tomcat 7 with tomcat7-maven-plugin and faced with another problem. this is pom.xml settings for that: <build> <finalName>employee-list</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.0</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> <plugin>

Cannot get Keycloak Tomcat 7 adapter to work (version 3.4.3.Final)

雨燕双飞 提交于 2020-01-06 05:56:27
问题 I have a Spring Boot 1.5.2 Web App packaged as a .war hosted on an Apache Tomcat 7.0.68. I want to use the Keycloak Tomcat Adapter but I encounter HTTP 401 returns on every endpoints included in the configuration... I am using the 3.4.3.Final version. I have read the doc @ http://www.keycloak.org/docs/2.5/securing_apps/topics/oidc/java/tomcat-adapter.html. Facts: The users, groups, roles, realm, client etc. exist in the main Keycloak configuration. Downloaded https://downloads.jboss.org

Tomcat security-constraints TRACE inconsistent

落爺英雄遲暮 提交于 2020-01-06 05:07:30
问题 I'm using a web.xml to try and disable the HTTP methods we're not using and to return a body that doesn't contain any tomcat info. So I've changed the web.xml of the app to have: <security-constraint> <web-resource-collection> <web-resource-name>restricted methods</web-resource-name> <url-pattern>/*</url-pattern> <http-method>TRACE</http-method> <http-method>PUT</http-method> <http-method>OPTIONS</http-method> <http-method>DELETE</http-method> <http-method>HEAD</http-method> </web-resource

Tomcat security-constraints TRACE inconsistent

早过忘川 提交于 2020-01-06 05:07:25
问题 I'm using a web.xml to try and disable the HTTP methods we're not using and to return a body that doesn't contain any tomcat info. So I've changed the web.xml of the app to have: <security-constraint> <web-resource-collection> <web-resource-name>restricted methods</web-resource-name> <url-pattern>/*</url-pattern> <http-method>TRACE</http-method> <http-method>PUT</http-method> <http-method>OPTIONS</http-method> <http-method>DELETE</http-method> <http-method>HEAD</http-method> </web-resource

WebAppInitializer cannot be cast to javax.servlet.ServletContainerInitializer

为君一笑 提交于 2020-01-06 03:14:25
问题 I'm facing the following stacktrace when running mvn tomcat7:run : java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/blog-demo]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost

My web application stop working after JSESSIONID appear in URL

别来无恙 提交于 2020-01-06 02:49:20
问题 I have a web application running in Apache Tomcat 7 and using Struts2. My login system is made by putting a User object in a session: ( bypassing "if" and "try" to be clear..) UserService es = new UserService(); User user = es.login(username, password); ActionContext.getContext().getSession().put("loggedUser", user); And then, I try to get a User object from that session in a Interceptor. If ok, then someone is logged. If not, go to login page by returning "notLogged" that will be catch by