jboss5.x

Using other HTTP connectors with JBoss 5.1

I'm trying to use a "better" HTTP connector than JBoss' default HTTP/1.1 connector. Following BalusC's recommendations, I changed the connector in server.xml to: <Connector protocol="org.apache.coyote.http11.Http11NioProtocol" port="8080" address="${jboss.bind.address}" connectionTimeout="20000" ...

Get Arjuna source for JBoss

Hi How can I get the source code for Arjuna/JBossTM that matches my JBoss version? More specifically, is there a way to reliably identify the version of a library that is distributed with JBoss 5.1.0? The options I've tried so far: opening the manifest file of jbossjts.jar which gives me 5.1.0 opening the file jar-versions.xml, but ...

HttpSession is sometimes "null" in case of JAX-WS webservices

I am working on JAX-WS webservice and sometimes on heavy load i am getting HttpSession "null". This is how I am getting the session: MessageContext mc = wsContext.getMessageContext(); HttpSession session=((HttpServletRequest)mc.get(MessageContext.SERVLET_REQUEST)).getSession(); if(session==null) { logger.warn("Session is null"); } ...

JBoss 5 is giving "null" session

I have a JAX-WS web service and some times [during load] JBoss 5 gives a "null" when I do a get session. Is there any "max session" parameter for Jboss? Thanks| Abhi ...

How to set a custom 404 page in JBoss 5?

Thanks for your replies! ...

Hibernate persistence slow on One-To-Many

I have a quite large object tree structure that I persist with Hibernate. This should have been persisted with the root-node first and then the children and so on. However this was not the way that Hibernate did it, it persisted the child first and than updated the reference column in the child when the parent had been persisted. This is...

org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider

Hello friends, I am developing an application using SPRING 3.0.4, JPA 2, Hibernate 3.5.5. I an trying an existing example given on link http://www.javacodegeeks.com/2010/05/jboss-42x-spring-3-jpa-hibernate.html. only difference is that I am using latest versions of libraries and JBOSS server. Following is list of my /WEB-INF/lib dire...

Custom error que

Hi all, I`am using jboss-5.0.0.GA-jdk6. Ive implemented a JMS que, and MDB which listens to it.(so far so good) What im trying to achive is: after 3 attempts of errors, instead of sending the error msg to DLQ, i wanna send it to a new custom Error Que which I want to define, so I can handle the errors in that que the way I want. any i...

JBoss and Apache Load Balancing

Hi there, I am trying to set up a JBoss Cluster with Apache Load Balancing. Basically I have followed the guide from here. No problem faced. The only issue I have would be, how do I access my own application? From the guide, it didnt mention how do I mount my own application. Here's my environment setup: Windows XP JBoss AS 5.0 Apac...

Make JBoss startup fail if deployment fails

Is there a way to make JBoss 5 startup fail if an application cannot be deployed? ...

Setting Manager sessionIdLength attribute in context.xml doesn't seem to work for JBoss 5.1.0

I edited JBOSS_HOME/server/all/deploy/jbossweb.sar/context.xml to be the following, but session id cookie values are still only 24 characters in length: <Context cookies="true" crossContext="true"> <Manager pathname="" sessionIdLength="40"/> <InstanceListener>org.jboss.web.tomcat.security.RunAsListener</InstanceLis...

Mbeans with JBoss

Hi, I'm trying to call a MBean deployed in JBoss, but i'm having this exception: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.io.InvalidClassException: org.jboss.security.auth.callback.SecurityAssociationHandler; org.jboss.security.auth.callback.SecurityAssociationHandler; class invalid for...

[ Jboss5.0 ] - No JTA UserTransaction available - specify either 'userTransaction' or 'userTransactionName'

Hello everyone, I have encountered a strange problem with spring transaction. My application uses Spring with EJBs. The EJBs also invoke Spring service classes annotated with @Transaction. I have used Spring JtaTransactionManager for transaction management. The application is packaged as an EAR file and is deployed on jboss5.0 and it w...

What does the JBoss 5 shutdown do?

At a high level, what does JBoss 5's shutdown do? What might go wrong if I just kill the java process instead of gracefully shutting down JBoss? A graceful JBoss 5 shutdown takes about 6 minutes for my application, which is pretty big and has 305 EJBs. JBoss seems to pause for a long time just before unbinding the EJB LocalHomes from ...

Unable to access a read-only Embedded Derby database from within EAR file deployed on JBoss server

I am trying to access a read-only Embedded Derby database. It is available as myDB.jar. This jar has one folder of the Apache Derby database - myDB (log and seg0 folders and service.properties file). This code works fine when I run from a file with a main method. But, when I package it into EAR and deploy it on server it gives error...

exception: Connection refused: connect.

Hi all, I am trying to connect a client (which is behind the company's proxy) to a server (JBoss AS 5.0) which is hosting an application (JavaFX). And I am facing the following error. exception: Connection refused: connect. java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Metho...

Do the JBoss attributes ActiveThreadCount and ActiveThreadGroupCount have maximums?

Hi, In JBoss 5, there is the mbean jboss.system:type=ServerInfo Which has the properties ActiveThreadCount and ActiveThreadGroupCount. Does anyone know if there are maximum values for either or both of these properties, and if there are, how to find them out? I am happy parsing configuration files if necessary. Looking at the sourc...

LoginModule getting invoked twice in jboss (before accessing secured EJB3 method)

Its been quite a while I'm stuck with this.I've wriiten my own login module XtrLdapLoginModule which implements the javax.security.auth.spi.LoginModule to authenticate users against three credentials viz. username, password and account. I couldn't use the LdapExtLoginModule cause it wouldn't help me authenticate against a particular acco...

Resolution should not happen via injection container error.

I have an EJB3 project to be deployed on JBoss 5.1.0 GA. I have Stateless EJBs being injected into other Stateless beans and Servlets. I'm using the @EJB annotation without any parameters to inject the EJB beans, (i have a test project just to simulate the injection, which works). When i try deploying i get the error below. "Caused ...

Why is richfaces fileupload double-escaping my message?

I am using richfaces 3.3.3 final and want to have a localized file-upload. Therefore i use something like this: <rich:fileUpload id="myUpload" ... addControlLabel="#{msgs.DO_ADD}" clearAllControlLabel="#{msgs.DO_CLEAR_ALL}" clearControlLabel="#{msgs.DO_CLEAR}" stopEntryControlLabel="#{msgs.DO_CANCEL}" uploadContr...