jboss5.x

errors deploying an EAR with EJBs 2.1 into JBoss AS5

Hi, I'm porting an application with EJBs 2.1 from Weblogic9 to JBoss AS5. I have made some of the changes like adding jboss.xml descriptors to EJBs and fixing application.xml of the EAR, but there are still problems when deploying the EAR. Here is a summary of the the latest error I'm getting when the first EJB is being deployed by JBos...

casting a JBoss Queue to user defined Queue

Hi All , I am new to using JBoss and currently m working on Jboss 5.1.0 GA . The problem is I have created a Queue AMIClientQueue on Jboss and I want to lookup and access it in my code with the following code snippet : Actor actor = (Actor)ctx.lookup(operation); where Actor has to be an interface and being an interface it can extend...

Why it is not possible to set several attributes by one call in twiddle?

Or it is possible? ...

jboss 5.0 data source configuration in ear file. How can I run oracle 10g and 11g on the same server?

Currently my setup is: in my ear META-INF/jboss-app.xml <jboss-app> <service>datasource-ds.xml</service> </module> and datasource-ds.xml <datasources> <local-tx-datasource> <jndi-name>jdbc/mydeployment</jndi-name> <connection-url>jdbc:oracle:thin:@eir:myport:mydbname</connection-url> <driver-class>oracle.jdbc.dri...

How do I write a J2EE/EJB Singleton?

A day ago my application was one EAR, containing one WAR, one EJB JAR, and a couple of utility JAR files. I had a POJO singleton class in one of those utility files, it worked, and all was well with the world: EAR |--- WAR |--- EJB JAR |--- Util 1 JAR |--- Util 2 JAR |--- etc. Then I created a second WAR and found out (the hard w...

Cannot turn on gzip compression in JBoss 5

I added following file deployers\jbossweb.deployer\server.xml <Connector compression="force" compressionMinSize="512" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,image/png,text/css,text/javascript"> </Connector> But fiddler shows that jboss does not compress responses. How to ...

Good learning resources for JNDI implementation (JBoss 5)

I have been working with JavaEE/EJB3 web apps for about half a year now. Until recently, I haven't had to touch a lot of the behind-the-scenes stuff, just the meat of the code. I have been wrestling with JNDI problems, and though I've solved a couple of them, I'm pretty much just doing the whole cargo cult copy-paste routine. It would re...

Problems deploying Liferay 5.2.3 in jboss 5.0.0

Hi there, I´ve been trying for the last month to get this working, still with no success, hope someone out there can help me. At this point, the environment used is: java version "1.5.0_16" Java(TM) Platform, Standard Edition for Business (build 1.5.0_16-b02) Java HotSpot(TM) Server VM (build 1.5.0_16-b02, mixed mode) Jboss 5.0.0.GA ...

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

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

Does generation of debug information to JSP classes add much to javac execution time?

Hi I am looking looking into the options for tweaking the performance of JBoss 5.1.0 and one of the options available to me is to disable the generation of debug information when compiling JSPs. I know that the presence/absence of debug information for the JVM makes no real difference, but does the generation of that debug information ...

problem with seam and mdb on jboss5.1

I have a problem when using a mdb as a seam component. In the bean I inject some other seam somponents. The problem is that when the server restart after a crash and the mdb is deployed it starts reading the messages but seam is not initialized yet and I got an exception(listed above). If i start the server whith the queues empty and su...

Jboss Error-Cannot process metadata

I'm trying to implement stateless session bean ejb3 in jboss5 using netbeans6.8 as a editor. When I tried deploying my application, I'm getting the following error. What is the issue with this? 17:45:04,901 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfszip:/E:/Shalini/jboss-5.1.0.GA/server/default/deploy...

Application throws NotSerializableException when run on an jboss cluster

Environment: JBoss 5.1.0, JBoss Seam 2.2.0 While trying to get my application running in a clustered environment after login I am getting the following exception. Post login we try to store the currentUser in jboss seam session context. java.io.NotSerializableException: org.jboss.seam.util.AnnotatedBeanProperty How to resolve this? ...

Different lib directories of JBoss

There is a number of different lib directories JBoss (5.1.0) uses: I can find jboss/lib, jboss/lib/endorsed, jboss/common/lib, jboss/server/default/lib and of course the jboss/server/default/deploy/myapp/WEB-INF/lib (am I missing something ?). From the above, I know that I need to use the last one (WEB-INF/lib) to put any jars my app ne...

JBOSS 5 + EJB3 = Boot blocked!

Hi at All... I'm very angry and this compromises my capacity to find a solution... One day my jboss 5.0 during the boot stop at Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" FOREVER!!! I'm try ever solution find on Stackoverflow. The only good is to run the jboss by prompt and connec...

How to add dll file in netbeans project

Hi! In my project, it is needed that com4j.dll file is to be added. I'm using netbeans 6.8 and jboss 5.0.1 as a deployment server. I can't able to add that dll file.. Some one Help me ...

JBoss timing database network latency

Hi Are there any performance issues or other concerns to be had with putting the following tables on a separate machine from JBoss 5.1.0 itself? hilosequences jbm_counter jbm_dual jbm_id_cache jbm_msg jbm_msg_ref jbm_postoffice jbm_role jbm_tx jbm_user timers I don't think that any of the services associated with these tables (the U...

Purpose of JBoss tables

Hi Can anyone point me in the direction of some documentation (or provide the information here) about the following tables, created by JBoss 5.1.0 when it starts up? I know what they are for at a high level, and know why they are there, but I could do with some lower-level documentation about each table's purpose. The tables are: hi...

Huge amount of JAR files in jboss/server/web/tmp/vfs-nested.tmp directory

Sometimes we have huge amount of JAR files in jboss/server/web/tmp/vfs-nested.tmp directory. For example today this directory contained over 350k jar files. But on other hosts there are only 2 jar files in this directory. What can be the root cause of this problem? We use JBoss 5.1 UPDATE: I found following information in release not...