java-ee

HTTP Status 408 error with tomcat form based authentication

孤者浪人 提交于 2019-12-22 06:25:40
问题 My application is written in JSP and has Form based authentication . I am using Apache and Tomcat 7. Here is my problem: Sometimes when session times out and when I try re-login to application, it displays the below 408 error message: HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser Appreciated if somebody can help me to resolve this. 回答1: I

HTTP Status 408 error with tomcat form based authentication

為{幸葍}努か 提交于 2019-12-22 06:25:17
问题 My application is written in JSP and has Form based authentication . I am using Apache and Tomcat 7. Here is my problem: Sometimes when session times out and when I try re-login to application, it displays the below 408 error message: HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser Appreciated if somebody can help me to resolve this. 回答1: I

Wildfly 10 can't connect datasource: invalid connection

£可爱£侵袭症+ 提交于 2019-12-22 05:51:07
问题 Problem I'm trying test my connection and it keeps giving me the same error while at first sight I can't see what I did wrong. Maybe I'm overlooking something... Error nexpected HTTP response: 500 Request { "address" => [ ("subsystem" => "datasources"), ("data-source" => "ProjectenDS") ], "operation" => "test-connection-in-pool" } Response Internal Server Error { "outcome" => "failed", "failure-description" => "WFLYJCA0040: failed to invoke operation: WFLYJCA0047: Connection is not valid",

RestEasy Post Process Interceptor chain not traversed when response created by ExceptionMapper

霸气de小男生 提交于 2019-12-22 05:25:49
问题 I am using RestEasy to build up my Restful web services. I have implemented ExceptionMappers to prepare specific exception responses. I have also implemented MessageBodyWriterInterceptors and a couple of PostProcessorInterceptors. Issue: All works fine when any resource does not throw any exception. My implementation works as expected. All the post processor interceptors and the message body writer interceptors are called. But when an exception is thrown from any of the resource methods, the

java.lang.NoClassDefFoundError: sun/security/ssl/SupportedEllipticCurvesExtension

蹲街弑〆低调 提交于 2019-12-22 05:25:20
问题 I am trying to secure a web application so that I can use a secure data transport layer TLS/SSL with HTTPS. I am using glassfish server 5. After starting the server I did a https://localhost:8181 and it gave me this exception: Warning: GRIZZLY0013: Exception during FilterChain execution java.lang.NoClassDefFoundError: sun/security/ssl/SupportedEllipticCurvesExtension at sun.security.ssl.HelloExtensions.<init>(HelloExtensions.java:82) at sun.security.ssl.HandshakeMessage$ClientHello.<init>

What is the difference between mappedName and lookup attributes of @Resource annotation in EJB?

蹲街弑〆低调 提交于 2019-12-22 05:23:36
问题 I'm confused between two attributes of @Resource annotation. Java Documentations says : mappedName : A product specific name that this resource should be mapped to. The name of this resource, as defined by the name element or defaulted, is a name that is local to the application component using the resource. (It's a name in the JNDI java:comp/env namespace.) Many application servers provide a way to map these local names to names of resources known to the application server. This mapped name

Java EE Interceptors and @ViewScoped bean

烂漫一生 提交于 2019-12-22 05:22:15
问题 I'm building a Java EE application using JBoss 7.1. In order to get a full audit of the user actions, I'm planing to use Interceptors to log every invocation of my beans' methods. To do so I have the following biding: @Inherited @InterceptorBinding @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) public @interface Logged { } Then I define my interceptor class: @Logged @Interceptor public class UserActionInterceptor implements Serializable { private static

Configuring MappedName annotation in Message Driven Bean dynamically

时光总嘲笑我的痴心妄想 提交于 2019-12-22 05:19:16
问题 When using Message Driven BEans, the destination name from where to receive messages is hard coded in the annotation @MessageDriven(mappedName = "someDestinationName") Is there a way to add this information at runtime? Bellow is a sample Message Driven Bean class. package mdb.beans; import javax.ejb.ActivationConfigProperty; import javax.ejb.MessageDriven; import javax.jms.Message; import javax.jms.MessageListener; @MessageDriven(mappedName = "someDestinationName", activationConfig = {

When/Why should I use Multithread in Java? [closed]

荒凉一梦 提交于 2019-12-22 05:09:06
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . I don't know when I should use Multithread in Java development, and the logic/reason of using it. How does it help in different scenarios? Scenario 1 I'm making a 2D scrolling game with enemies and a all that, think of metal slug Scenario 2 I'm making a database daemon to check

Does a war file size affect in some way the application and/or application server performance?

纵饮孤独 提交于 2019-12-22 05:07:32
问题 we've bean struggling here at work by somebody suggestion that we should decrease the size of our war file, specifically the WEB-INF/lib directory size, in order to improve our production JBoss instance performance. Something I'm still suspicious about. We have around 15 web apps deploy in our application server, each about 15 to 20 MB in size. I know there are a lot of variables involved on this, but has anyone of you actually deal with this situation? Does the .war files size actually has a