jboss

How to enable JBoss server TRACE log?

I am having web application running in JBOSS AS 4.2.2. Observed that jboss server automatically shuts down, and the following exception is observed in server.log 14:20:38,048 INFO [Server] Runtime shutdown hook called, forceHalt: true 14:20:38,049 INFO [Server] JBoss SHUTDOWN: Undeploying all packages I want to enable TRACE for org...

To clean or not to clean $JBOSS_HOME/server/web/tmp directory?

We have script that restarts JBoss. Should we clean following directories in this script: $JBOSS_HOME/server/web/tmp $JBOSS_HOME/server/web/work $JBOSS_HOME/server/web/data Or JBoss should clean all old files in these directories automatically? Our clients complains that there are very old files in these directories. ...

Use external jars in EJB (JBoss)

I want to use two external jars from EJB: jar #1 - all interfaces of the EJB (home, remote etc) jar #2 - some types which I use inside my EJB What should I do to achieve this? If I put this jars inside ear it doesn't work, and JBoss throws NoClassFoundException ...

How to run multiple instances of JBoss in a one single machine ?

Hi, I need to run multiple(more than 4) instances of JBoss server on a single machine. I am using JBoss 4.2.3 GA. ...

How are you supposed to access EJB when using Easyrest?

I have been trying to get Resteasy to work (and not it dose). However I now have another headache with accessing the EJB:s. I have tried injecting them, looking them up with jndi and most other solutions but none of them works. I get massages like: java.lang.RuntimeException: Class is not a root resource. Or: java.lang.IllegalArgumentE...

EJB2 deployment problem (JBoss 3.2.1)

When I try to deploy my simple app I get the following error: Bean : TestEJB Method : public abstract S2KManager create() throws CreateException, RemoteException Section: 7.10.6 Warning: The method return values in the home interface must be of valid types for RMI/IIOP. First some technical information: JBoss 3.2.1 JDK 1.4.2 EJB2 ...

Who is the best application server: JBoss or Glassfish?

Hi, everyone! I have a choice to do: choose a application server for my company! And I need some help. Glassfish or JBoss? Thanks. ...

Using an EJB inside a JAX-RS resource class in RestEasy?

I would like to have the following kind of resource class work when deployed under RestEasy in JBoss 6: @Path("Something") public class Foo { @EJB private SomeService service @GET public Object frobnicate() { assert service != null; // JBoss blows up here return result; } } Two questions: It is a limitation ...

Test Jboss JMS externally - outside of the application server

Hi All, I'm pretty new to the JMS functionality. I need to test a remote JMS which is on Jboss 4.2.1. I want to develop an external test (e.g from a main class) which sends and receives messages to/from the app. server. (I do have full access to the remote server.) My questions are: 1) How do I send messages to the Jboss JMS? 2) Wh...

I am getting null pointer exception while publishing dynamic web project on jboss using eclipse

I am getting null pointer exception while publishing dynamic web project on jboss using eclipse Environment details Version: 3.3.2 Build id: M20080221-1800 Jboss: 3.2.3 JDK 1.5 I have checked with google, but nothing work, can anyone suggest me what is the root cause for that Following is the log trace may be help to understance the...

EAR deployment failed because of Hibernate SessionFactory

I made a maven project that includes EJB, WEB and EAR modules. But I don't use hibernate in my project. So I don't add hibernate dependencies. I successfuly tested my project in JBoss 5 but when I tried to test in JBoss 4.2.3 it failed. It complains about: Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.hiber...

Append message to JBoss Console using jboss-log4j.xml

I'm unable to append messages from my application to the JBoss console. The following are the changes that I made to the jboss-log4j.xml configuration file: <category name="com.tricubes"> <priority value="INFO"/> <appender-ref ref="CONSOLE"/> </category> Here is my code: public class OneToOneValidation2 { private static ...

JBoss AS 5 "Failed to add Resource"

Hello - We are stumped and looking for advice.. Were running: jdk1.6.0_20 , jboss-5.1.0.GA, messaging-2.0.0.BETA4 And trying to add a Topic or Queue but we are getting this error: Failed to add Resource: java.lang.IllegalStateException:Failed to find template for: TopicTemplate any advice? ...

Introduction book for JBOSS

Hi guys, I join a programming competition that requires participant to use JBOSS platform. Do you guys have any recommendation on what books or articles I could use? ...

patching java reflect calls using AOP

I don't have a lot of experience with Jboss AOP and I'm just curious if it's possible to replace all calls like Field f = foo.class.getDeclaredField("bar"); f.set(object, value); with something like Field f = foo.class.getDeclaredField("bar"); FieldSetCaller.invoke(f, object, value); using Jboss AOP. FieldSetCaller is my own class....

How to get deployed jars in Jboss

How can I get the list of jars deployed in JBoss? I want to compile some classes at runtime in EJB, but they may use some of the deployed jars, so I need to specify classpath during compilation. ...

why hyperic can't auto-discover my Jboss AppSvr ?

I installed JBoss AS on xx.xx.12.48. I launched ./bin/run.sh -b xx.xx.12.48. The JMX web console indicates everything is OK. On xx.xx.12.49, I installed Hyperic (latest). I installed Hyperic agent on xx.xx.12.48 I can see both Hyperic agents, on both servers. But ther's nothing about my JBoss AS server !!! Why can't Hyperic Auto-Disc...

Getting all ActiveDirectory groups using OpenSSO Client SDK

Hi, I hope someone here has experience with Sun OpenSSO (now ForgeRock OpenAM). I'm trying to get all groups in ActiveDirectory using the OpenSSO Client SDK in Java / JBoss EAP 5.0. I tried the following by combining various samples and code snippets I could find on the web, but this fails and eventually logs "Memberships for identiti...

genStrAsCharArray optimisation benefits

Hi I am looking into the options available to me for optimising the performance of JBoss 5.1.0. One of the options I am looking at is setting genStrAsCharArray to true in <JBOSS_HOME>/server/<PROFILE>/deployers/jbossweb.deployer/web.xml. This affects the generation of .java code from .JSPs. The comment describes this flag as: Shou...

How do I stop/start EJB Apps in JBOSS 6.0 from the command line

If I use the web based administrative console for JBOSS, I can navigate to Applications - EJB2 JARs and see a list of deployed EJBs. By clicking on one of these, I get a page that allows me to start and stop the selected EJB. However, I cannot find a command line equivalent. Is there a way to start/stop EJB apps in JBOSS via the comma...