jboss

More remote debugging sessions for multiple instances of JBoss

Hello, I'm running more instances of JBoss on one machine. This instances is created with own address binding parameter -b and runs on different configurations by -c parameter. The machine is Linux one and there are more virtual interfaces created (by ifconfig eth0:1 192.168.0.101 netmask 255.255.255.0 up). My idea is that more peop...

JBoss Too Many Files Open Error

Just in the last week I have been having issues with accessing a JBoss (v 4.2.2) web application. When I go to the home page, I get a java.lang.NullPointerException error page. After looking at the JBoss log output, it appears that too many files are open, so how would I go about closing these files? Here is the output from the JBoss ...

DAO, Spring, Hibernate, Jboss

How exactly are these 4 components related, any good explanations someone can offer or links or whatever useful. ...

Is there a way to read the jvmRoute value from the JBoss server.xml at runtime?

Our JBoss server.xml file has this line: <Engine name="jboss.web" defaultHost="localhost" jvmRoute="app_server_01"> Is there any way to get the jvmroute value (in this case app_server_01) at runtime using Java? Background We've got session affinity (sticky sessions) configured between our app servers and Apache servers. JBoss appe...

jndi.properties in JBoss and GlassFish deployment

Currently an EJB / Web Application project uses a JBoss-specific JNDI configuration file, placed either in the conf directory or in the Jar file (both works fine). How can I make this project portable between JBoss (4.2.3 or 5) and GlassFish 3? Is there a recommended way to set different JNDI configuration parameters depending on the co...

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...

Is it good idea to Sun's implementation of JAXP(jaxp-ri-1.4.2.jar) to AIX?

We use saaj-impl-1.3.2.jar from Sun. It requires jaxp-ri-1.4.2.jar from Sun. Is it good idea to put these Sun's libraries in web application that will work under JBoss on AIX? ...

Project to isolate entities in Seam

Hi guys, Is it possible to have a Seam project just for entities (src/main) and other projects access them ? I have a situation that a organization has 6 projects accessing the same entities and i don't want to replicate them in each project. If it is possible, how can i do that ? where can i found documentation about it ? thanks, C...

How do you unwar a .war file with ant on windows?

I'm only remotely familiar with what ant does, but apparently I have to setup a service that's run on jboss and put it into a deploy directory... the problem is the .war file -- I only have winzip 7zip and ant and I dont know how to ge the contentsa out of the .war file to put it in the deploy directory... are there other conf and buil...

how to obtain the relative path of a resource in a j2ee project

I have a Dynamic Web Project having a flat file (or say text file). I have created a servlet in which I need to use this file. My code is as following: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // String resource = request.getParameter ("json") ; ...

How to download file from inside Seam PDF

...

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...

Finding a needed dll after a JBoss (hot) redeploy?

My web application uses a native dll for part of its functionality (the location of which is provided in PATH). Everything works until I make a change to the WAR and JBoss hot deploys this WAR. At this point, the dll is no longer found and I need to manually restart the server. What is the best way to load the dll back into the app afte...

How to use xml-apis in web application that will be running under JBoss 5.1?

We need to use jasper reports in web application under JBoss on AIX. Today we get a problem when we tried to add xml-apis to WEB-INF/lib - JBoss did not start at all. What should we do in order to use xml-apis under JBoss? PS. As far as I know we need org.w3c.dom.xpath.XPathEvaluator and org.w3c.dom.svg.* ...

How to get the number of JMS messages in a Topic

How do I get the number of JMS messages waiting to be consumed by a specific JMS message subscriber? I use the Topic model (publish/subscribe) and not the Queue model. I want my MDB (message driven bean) to be able to figure out this information about the topic it listens to. To be clear; I want my MDB to get the number of messages wait...

Memory usage of JBoss?

When I start an empty JBoss 5.1 it uses this amount of memory: in default configuration On Windows ~ 530Mb On AIX ~ 220Mb in web configuration On Windows ~ 320Mb On AIX ~ 100-130Mb Why is there so big a difference between memory usage on AIX and on Windows? Versions of JBoss are the same. Java 1.5. ...

JConsole Threads Tab - Understand Info

I'm running JBoss 5. I see that memory keep is increasing as time pass. The number of active threads are increasing. The following stacktrace is taken from an active thread which is one of many threads (These are the threads that are being added as time pass). What can i learn from the stacktrace? How can I go deeper and have clearer vi...

Jboss 5 Integration with Apache 2.2

I have successfully integrated Jboss with Apache. I can pull up http://localhost/web-console .... now when I drop a war file into my Jboss deploy directory I can pull it up here localhost:8080/helloworld/hi.jsp BUT NOT here localhost/helloworld/hi.jsp Isn't the point of integrating Jboss with apache so I do not have to do :8080? and I...

EJB into SEAM Component (Different projects and same JBoss)

Hey guys, I have the following setup: JBoss 4.2.3 under that i have: --> Project A (Wich is not SEAM 2.1.2GA based) EJBs: * beanA (JNDI = beanA/remote) * beanB (JNDI = beanB/remote) --> Project B (SEAM based) EJBs / Components: * ComponentX * ComponentY On component X i have the current pie...

Jboss Auto start

Hello Everyone, I have Jboss 5 installed/configured. I would like the ability to have Jboss auto start when my VM boots up. I see in my Jboss bin directory I have a startup script jboss_init_redhat.sh I am assuming I have to get that script into my /etc/rc.d/init.d/jboss file Then I am stuck, what is my next step? Thank you for ...