jboss

How to implement a Timer on JBoss 4.2.2

How can I implement a timer on JBoss 4.2.2 in a vendor independent way. Requirements: trigger logic in a defined interval start the timer at startup no dependencies to JBoss specific libraries / functionality do not use a servlet to start the timer But I see only this possibilites: Implement the interface org.jboss.varia.scheduler...

How to fast fail JBoss (ie System.exit()) during container initialization when exception is propagated to ServerImpl.doStart()

Specifically, consider the case where JBoss attempts to open a socket on 1099 during ServiceMBeanSupport (rmi) initialization, but port 1099 is already taken. Current behavior is that the exception is system.err'd and JBoss continues to initialize. Later, during application runtime, a jndi lookup causes an execution thread to hang --...

JBoss Connection Reset

Hi all,I'm used JBoss Application Server for running my web application.After I accessed again.I receive this errors : WicketMessage: Can't instantiate page using constructor public com.app.web.common.MainPage() Root cause: java.sql.SQLException: Io exception: Connection reset at oracle.jdbc.driver.DatabaseError.throwSqlException(Data...

"Stored procedure 'xxx' may be run only in unchained transaction mode." error when calling a procedure from a DataSource, in an EJB context.

We have a Database in Sybase, which we access from a Java server. Access to the DB was made directly through the Sybase driver, using DriverManager. It was working correctly, we were able to call our stored procedures. Recently, we are migrating to an application server (on JBoss 5), and the calls to the database are now made through a...

Deploying an exploded WAR inside a compressed EAR == not possible?

At the moment I am trying to deploy an exploded war directory in a compressed ear file on a jboss-4.2.3.GA server. But JBoss complains that it can't find the web-app.war file (Failed to find module file: web-app.war). However if I deploy the same ear file exploded, too, the deployment works without any problems. So my question is: Is it...

JBoss Ldap Auth LdapExtLoginModule problem

We are trying to setup Jboss 4 to authenticate users using Microsoft Lightweight Active Directory Service (aka ADAM) user name: admin CN=admin,CN=Users,CN=donLaptop,DC=don,DC=com JBoss can connect to ADAM, but somehow cannot validate the password (fig4) Using Apache Directory Studio, I can verify that CN=admin,CN=Users,CN=donLaptop,DC=...

Flex 4, Spring 3 with Hibernate & MySQl setup + configuration issues.

Hi All, This kind of question has been asked before, but has not been well supported at StackOverlfow...maybe because some people think its elementary..but beginners like me have spent days on this but to no avail. Kindly help [I'm sure its going to be an ever occurring issue] I'm trying to make a flex project and want to integrate Spr...

JBoss Web Service deployment not producing nillable attribute

I have deployed a JAX_WS service in JBoss using the bottom-up approach. In some class attributes, I specify the following annotation: @XmlElement(name = "networkInfo", required = true, nillable = false) however, I only get the following in the generated WSDL: xs:element name="networkInfo" type="tns:networkInfo" The minoccurs attrib...

how to upgrade jboss 4.0.3sp1 to 5.1?

i mean i just want to upgrade jboss application server from 4.0.3sp1 to 5.1, i have downloaded jboss-5.1.0.GA.zip, but i have not found any procedures from internet, is there any official upgrade procedures or guides, commands about this upgrade? otherwise, i just need to unzip jboss-5.1.0.GA.zip, and copy *.ear, *.war from old jboss d...

Single sign-on ActiveDirectory and J2EE

Scenario: We sell J2EE(JBoss+SpringSecurity) software to large corporation which mostly use ActiveDirectory Our J2EE(JBoss) software can be hooked up to ActiveDirectory, however it requires Roles addition into ActiveDirectory i.e. cn=esp_administrator,cn=Roles,o=company,o=com As per my understanding, JBoss will need an account to "bind...

Advantages/Disadvantages to exploded wars

An answer to a question I read today suggested deploying an application as an exploded WAR. It got me thinking. Every deployment I've ever done to a JBoss/Tomcat has been with a a WAR/EAR file. At least as far as I can remember. Have I been making a mistake all these years? Are there advantages to deploying an app in its expanded form...

Jump to a state not defined on the jbpm pageflow.

Hi there. I have a pageflow with 4 steps, And I want to add a rule/state in the page flow so that if I return a navigation that is not defined in the page flow, it will go to a failsafe state. The goal of this is to be able to define a template with some predefined links, and be ab...

get the war file name in jboss

Hi, How can I get the deployed war file name inside jboss. For example, when I am inside a servlet and I want to know the which war file name that I am in. Thanks, Son Nguyen ...

javax.naming.NameNotFoundException

Hi I am running an example of ejb using JBoss5 Container. I am using an example from here(Part one). In the example I deployed bean in JBoss and an application in Tomcat(to acces the bean from JBoss). I am getting the error in the screen of tomcat server javax.naming.NameNotFoundException: greetJndi not bound ( greetJndi is the jndi-...

com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Can't call rollback when autocommit=true

hi All, Im using Jboss5.0 with mysql in my application. and there will be lot of concurrent actions and DB contains considerably lot of records. this error is coming frequently.. every now and then. com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Can't call rollback when autocommit=true at com.mysql.jdbc.SQLErro...

problem to start Jboss server?

Hi all i am download Jboss jboss-5.0.0.CR2-jdk6.zip file and extract the zip,then i am set system variable JBOSS_HOME=F:\jboss-5.0.0.CR2.when i run the jboss on double click on run.bat. it execute for a while and then automatically closed the windows.if i run the run.bat file from command propmt it show the below error i am not able to...

JBoss envers and huge audit tables

All, I am auditing my JEE application with JBoss Evers and the nature of my application causes the audit table to grow very fast. The historic data is queried infrequently and access time is not really an issue, apart from the data from the last week. This data IS queried frequently and access needs to be fast. Ideally, I would split th...

Jboss log- Exception occured during first invocation

hi All, i have found this error on jboss log. im using jboss5.0/mysql application. anyone shed some light. Thanks ERROR [org.jboss.remoting.transport.socket.ServerThread] (WorkerThread#12[59.92.61.55:50642]) WorkerThread#12[59.92.61.55:50642] exception occurred during first invocation java.lang.reflect.InvocationTargetException ...

why GlassFish and JBoss present different WSDLs?

Hi. I have a web service built by Java, and deployed on two application servers named "GlassFish" and "JBoss". now when we get the WSDL from them, each application server produce different format of WSDL, that .NET wsdl.exe tool generates different object models and proxy classes. so i can't use same client .NET codes to invoke both app...

JBoss, sync4j and class loading

Hello there, I'm in need of some help with running one webapp (sync4j) with jboss 6 I'm getting the following error: could you help me with this? I found here: https://community.jboss.org/wiki/ClassLoadingConfiguration that i need to add this: <jboss-app> ...