jboss5.x

why do i get the protected page instead of the login page?

拟墨画扇 提交于 2019-12-23 05:51:18
问题 I'm using JAAS to secure my web-application. As the title says, the problem is that i get the home page which is in the protected folder instead of the login page. Actually the home page is my welcome page. By the way, it works fine when i write the URL (/myappJaas/protected/admin/homeadmin.xhtml) in the web browser. This is the web.xml file: <welcome-file-list> <welcome-file>/protected/admin/homeadmin.xhtml</welcome-file> </welcome-file-list> <security-constraint> <web-resource-collection>

Cannot turn on gzip compression in JBoss 5

旧时模样 提交于 2019-12-23 05:27:04
问题 I added following file deployers\jbossweb.deployer\server.xml <Connector compression="force" compressionMinSize="512" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,image/png,text/css,text/javascript"> </Connector> But fiddler shows that jboss does not compress responses. How to ensure that gzip compression in JBoss is turned on? Is it possible to check it in jmx-console? 回答1: Those settings need to be added to your existing HTTP connector element, i.e.:

Jboss 5. HttpOnly session cookies

萝らか妹 提交于 2019-12-23 03:09:04
问题 How to configure JBoss 5.1.* to make session cookie HttpOnly? <Context useHttpOnly="true"> Doesn't work. 回答1: Have you tried <SessionCookie secure="true" httpOnly="true" /> as explained here. 回答2: I'm using JBoss [EAP] 5.0.1 and adding <SessionCookie secure="true" httpOnly="true" /> in <myJBossServerInstancePath>/deploy/jbossweb.sar/context.xml <Context cookies="true" crossContext="true"> <SessionCookie secure="true" httpOnly="true" /> ... works perfectly (thanks Luciano). 回答3: Add

java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.POIXMLDocument on Jboss 5.0 EAP

微笑、不失礼 提交于 2019-12-22 18:39:18
问题 Getting following exception in Jboss 5.0 EAP but it work fine in JBoss 5.1 GA. we are using POI 3.7 and jars included are poi-3.7.jar poi-ooxml-schemas.jar poi-ooxml.jar The stack trace is ERROR [org.apache.catalina.core.ContainerBase.[jboss.ueb].[localhost].[fesbcon-Fig].[Faces Servlet]] 3;13;44.4g3pM (http-0.0.0.0-8280-1) Servlet.service() -For servlet Faces Servlet threu exception java.lang.NoClassDe-FFoundError: Could not initialize class org.apache.poi.POIXMLDocument at org.apache.poi.ss

How to make my localhost available over internet

混江龙づ霸主 提交于 2019-12-22 18:37:01
问题 I have hosted an application on JBoss on my local machine and I can access by localhost or over my IP also. Now I want the same application to be accessed by other users over the internet by my IP. Could you let me know how to configure my JBoss to server these requests? 回答1: You could start your JBoss server with this param -b to bind to a specific IP: run.bat -b <IP> For example if you adapter is configured with the IP 192.168.0.1 use the following command to bind your JBoss server to this

Mod cluster proxy timeout in apache error logs

大兔子大兔子 提交于 2019-12-22 06:48:47
问题 In our environment we get these entries consistently in error logs. [Sun Dec 22 20:29:43 2013] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header [Sun Dec 22 20:29:43 2013] [error] ajp_read_header: ajp_ilink_receive failed [Sun Dec 22 20:29:43 2013] [error] (70007)The timeout specified has expired: proxy: read response failed from (null) (xx.xx.xx.xx) [Sun Dec 22 20:30:01 2013] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't

Where do you configure log4j settings in jboss6

帅比萌擦擦* 提交于 2019-12-19 21:46:35
问题 jboss-6.0.0.Final doesn't seem to have jboss-log4j.xml which was used to configure log4j settings in jboss5 (i.e. under server/default/conf/jboss-log4j.xml) 回答1: Apparently the name and location changed since release 6: In the releases 4.x and 5.x it's located here:JBoss_HOME\server\default\conf\jboss-log4j.xml Since the release 6.0.0 M1 it's located in the deploy folder: JBOSS_HOME\server\default\deploy\jboss-logging.xml Source: http://www.mastertheboss.com/jboss-application-server/251-jboss

Hibernate 3.5-Final in JBoss 5.1.0.GA

♀尐吖头ヾ 提交于 2019-12-19 16:48:37
问题 Hibernate 3.5-Final is finally here and it offers the much anticipated JPA2 support, amongst other features. I am working on a project(EJB3 based) using JBoss 5.1.0.GA and Hibernate 3.3, but I wanted to take advantage of the JPA2 and tried to upgrade to Hibernate 3.5. What I did was fairly simple and standard - I just put all the hibernate 3.5 jars in the server/configuration(default,all,etc)/lib folder - that way they take precedence over the hibernate artifacts shipped with JBoss. It seems

Connection is not associated with a managed connection.org.jboss.resource.adapter.jdbc.jdk6.WrappedConnectionJDK6

走远了吗. 提交于 2019-12-19 09:02:19
问题 I am using Hibernate on a JBoss server. I get the error below. The error happens when I try to connect to the database for the second time in the same sesssion. Also I get the error "Closing connection for you. Please close your connection". 14:28:37,869 ERROR [HibernateUtil] HibernateException occurred in executeQuery method in HibernateUtil class org.hibernate.exception.GenericJDBCException: could not execute query at org.hibernate.exception.SQLStateConverter.handledNonSpecificException

JBoss 5.1: Hibernate with JPA

寵の児 提交于 2019-12-19 03:08:10
问题 I've got two questions to ask regarding JBoss 5.1. We are in process of migrating from JBoss 4.2 to JBoss 5.1. We are also using Java 1.6 and JPA 2.0 with Hibernate 3.6 as the provider. My questions are: Is it possible to use Hibernate 3.6+ with JBoss 5.1. If yes, then how? What about JPA 2.0? I know that JBoss 5.1 comes with JPA 1.0 compatibility. Can we use JPA2? And as we can not do any kind of configuration to the JBoss installation, all the fixes need to be done in our application only.