jboss5.x

Spring Open JPA

Hi, I am trying to integrate Spring and OpenJpa. For every scenario the exception thrown is SAXParseException: No Content allowed in Prolog. I am aware that the issue is probably related to the xml files but all the related xmls are read and validated correctly. The spring files are parsed correctly and beans are created but the en...

JAAS and JBOSS 5 problem with principal

I am working with a piece of code implementing JAAS LoginModule and in the commit method I set the principal with user UUID: subject.getPrincipals().add(new SimplePrincipal(userUUID) But for some reason when I access the user from EJB Context: context.getCallerPrincipal().getName() I receive the login name of the user instead of t...

JBossCache as a second level cache for Hibernate in JBoss 5

Here is my configuration: Hibernate 3.3.1.GA, JBoss 5.1.0.GA, JBoss Cache 3.2.0.GA. I'm doing Hibernate configuration as described here: http://www.jboss.org/community/wiki/ClusteredJPAHibernateSecondLevelCachinginJBossAS5 <hibernate-configuration> <session-factory> <property name="cache.use_second_level_cache">true</pro...

Jaas web form authentification in JBOSS 5

Hello all. First of all sorry for my poor english but, i'm french... I try for some time to create my custom jaas module for authentification im my web application. I work under JBoss5. So I have create my own JAAS module (Principal, Group, LoginModule). I have declare it in my ear conf: -myEAR:      |-----my-login-config.xml      |-----...

EJB3 Annotation

Hi All I am using JBoss 5 GA, I created a test Session bean, and local interface. I have created a servlet client. I tried to inject the interface in the servlet using @EJB.. But when I call this servlet I got the requested resource is not available!!!! When I comment the //@EJB, the page run successfully, any help please???? Jotnarta...

install war file at server deploy directory

Hello all, I'm want to have the war file deployed in the server deploy directory (or any directory of my choice) along with the one deployed in the repository. Also, can I control the name of the war file deployed like, I don't want the war file to be projectname-1.0.war I just want the name of the war file be projectname.war. Thanks, ...

J2EE - JPA - EJB3 - Transactions in MDB methods

Hi, I have resource local datasource (Oracle9i) deployed at JBoss 5.1.0: <datasources> <local-tx-datasource> <jndi-name>OracleDS</jndi-name> <connection-url>jdbc:oracle:thin:@IP_ADDRESS:1521:inv9i</connection-url> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <user-name>***</user-name> <password>***<...

How to get the class loader ObjectName from a JavaEE application under JBoss 5.x

Our JavaEE application has a services which is responsible for installation and start up of other services depending on the configuration stored in a database. Services are installed using the ServiceControllerMBean.install( org.w3c.dom.Element element, javax.management.ObjectName objectName) method. This method requires a cla...

Transactional File Access and Caching in JBoss AS 5

We need to locally store a cache on a File System through JBoss 5. The files we need to store are big (~50 Mbyte) and there are many consumer (through WS on JBoss) that read these files and one producer (JBoss Biz Logic) that creates the last one. Because there are concurrent read and write problems, I would like to know if there is a ...

JBoss 5.1.0GA: "java.lang.IllegalStateException: Null beanMetaData" and "java.lang.RuntimeException: failed to initialize bean container"

Hi, I am trying to deploy a ear file, which was originally written for Jboss 4.0.3 SP1. The "upgrade" involved: use of javax.annotation.PostConstruct change activateConfig to activationConfig make sure the bean implements import javax.jms.MessageListener I believe the following stack trace is triggered by a MDB (one and only) withi...

JBoss 5 truncates trailing = of a base64 cookie string

After upgrading from JBoss 4 to JBoss 5, I've noticed the most annoying regression. It truncates the trailing equal sign ('=') of a base64 cookie value. It took me so much time to understand that the problem wasn't my code but JBoss', I googled it and find out it's a known issue . The suggested work around is to calculate the string le...

setProperty must be overridden by all subclasses of SOAPMessage

I'm trying to deploy some web services in a WAR application on JBoss 5.1.0. I have created the source files from an existing wsdl using JAX-WS tool wsgen. This created the Service files and @XmlType annotated clases that would act as request and response wrappers. This classes worked well on JBoss 4.2.3, but when moving to JBoss 5.1.0,...

Exploded deployment fails on JBoss 5

I have a web application which deploys fine as an ear file. But when I try to deploy it in exploded form it fails like this: 17:13:17,305 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=app.ear/#app-persistence state=Create java.lang.RuntimeException: could not find relative path: lib/persisten...

Improving JBoss 5 slow startup

We upgraded from JBoss 4 (and JDK 5) to JBoss 5 (and JDK 6). The problem is that the start time has gone from 1.5 minutes (on JBoss 4) to more than 4 minutes. 18:53:35,444 INFO [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 3m:9s:262ms It seems like the component that is ta...

Can't set serviceName and endpointName on an EndpointReference

I need to add ServiceName and PortName information on a W3CEndpointReference, but even if I add those to the W3CEndpointReferenceBuilder, this information won't show on the resulting EPR. This is preventing me from successfully creating a proxy to consume the service, getting the following error when I call epr.getPort(InterfaceClass.cl...

Cannot start JBoss 5 with memory setting -Xmx768M

We have PC with Windows with 2048 RAM. We try to use next memory settings for JBoss: -Xms256M -Xmx768M -XX:MaxPermSize=256M But it cannot start: Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. JBoss starts only if we change -Xmx768M to -Xmx5...

Can JBoss 5 application access jars outside the EAR structure

When the jars are packaged within EAR/lib, all works fine, but I cannot use this approach and need to refer to them from the filesystem (maybe using absolute/relative paths) Also adding the jars to the system classpath (using conf/jboss-service.xml) is not an option. I have already defined a scoped classloading using loader-repository ...

jboss 4.2.2 to 5.0.1 migration:needed jboss client jar files

im switching jboss 4.2.2 to 5.0.1 and i have installed jboss. now on client side i replaced existing jar files. jbossall-client.jar,jboss-client.jar,commons-logging.jar,jboss-serialization.jar,jnp-client.jar. but still error came on logging. java.lang.NoClassDefFoundError: org/jboss/logging/Logger at org.jnp.interfaces.NamingCont...

jboss 5 startup time?

Jboss 4.2.2 taking 30 to 40 secs to start up. but Jboss 5 taking like 1 min 20 sec for starting up. is this normal time or may it be reduced? ...

Newbie: Build error running Struts2 on JBoss from Eclipse

I've been a .NET developer for over 8 years now and I've been placed on a Java project and I'm trying to get up to speed. I'm using Eclipse EE 3.5.1, JBoss 5.1, and Struts 2.1.8.1 (all the latest versions as AFAIK). I'm trying to create a new project with a simple login and home page. But when I run my project from Eclipse I get the fo...