[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Oracle, datasources and hibernate.default_schema

2009-08-18 Thread gcoleman
I'm using hibernate inside JBoss with an Oracle datasource. Usually when I do JDBC queries against the datasource it uses the schema as defined in the -ds.xml. But with hibernate I have to add the hibernate.default_schema property in persistence.xml too: | | java:/MainDS | .

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jboss.xml validation problem

2009-06-19 Thread gcoleman
Should deployers/metadata-deployer-jboss-beans.xml contain some stuff about the 5_1 deployment descriptors? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238818#4238818 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=42

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jboss.xml validation problem

2009-06-19 Thread gcoleman
I'm still getting the "jboss.xml is not well formed!" exception, even with an empty jboss.xml: | http://www.jboss.com/xml/ns/javaee"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee |

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: jboss.xml validation problem

2009-06-16 Thread gcoleman
Thanks. Moving the local-jndi-name and jndi-name elements makes the xml at least in validate from within IDEA. The deployment is still failing and it's less clear where the problem is now: | Caused by: java.lang.Exception: The xml deployfile.ear/bingo-ejbs.jar/META-INF/jboss.xml is not well

[jboss-user] [Installation, Configuration & DEPLOYMENT] - jboss.xml validation problem

2009-06-16 Thread gcoleman
I'm having trouble getting an existing application to deploy on 5.1.0.GA. It deploys fine on 4.2.x. I'm using ignore-dependency elements in jboss.xml to handle circular references and it's causing problems with descriptor validation (I can't use the annotation because the code has to be portabl

[jboss-user] [EJB 3.0] - Re: NullPointerException in JavaEEComponentHelper with JBoss

2008-09-24 Thread gcoleman
That's a pretty rubbish workaround. The only one I've come up with that doesn't involve lots of changes to existing code is to not use JBoss 5. It's very disappointing. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178471#4178471 Reply to the post : http:/

[jboss-user] [EJB 3.0] - Re: problem with MBeans webservices and ejb3.0

2008-09-23 Thread gcoleman
Check for any circular dependencies. JBoss doesn't like them but doesn't actually tell you so. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178250#4178250 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178250 ___

[jboss-user] [EJB 3.0] - Re: NullPointerException in JavaEEComponentHelper with JBoss

2008-07-30 Thread gcoleman
I'm getting this exception too. The ear contains a mixture of EJB2 modules and EJB3 ones. Some of the EJB3 beans depend on EJB2 ones (via ejb-local-refs). Could this be what's triggering the bug? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167584#4167584

[jboss-user] [JBossWS] - Re: EJB Web Service Stateful?

2008-06-20 Thread gcoleman
Stateless EJBs are only stateless in the sense that they're not associated with any particular client session. The actual EJB instances can and will be pooled by the application server. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159612#4159612 Reply to t

[jboss-user] [EJB 3.0] - Re: Calling EJB 3 Session Bean from EJB 2 Session Bean???

2008-04-24 Thread gcoleman
I haven't tried this, but you should be able to add EJB 2.1 client home with the @RemoteHome annotation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146436#4146436 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=41464

[jboss-user] [EJB 3.0] - Cyclic dependencies and class-level @EJB

2008-04-10 Thread gcoleman
I've got lots of cyclic dependencies between SLSBs which are apparently not allowed with EJB3 beans on JBoss. Tracking down the exact dependencies that JBoss doesn't like takes a long time, but adding @IgnoreDependency around the place has fixed most of them. The problem is that I've got some c

[jboss-user] [EJB 3.0] - Injecting EJB2 entity homes into EJB3 beans

2008-04-02 Thread gcoleman
Should I be able to inject EJB2 homes into EJB3 beans?. This used to work on 5.0.0.Beta4 but doesn't with the latest 5.0.0 HEAD build - I'm trying to upgrade due to a problem with JBossWebRealm (fixed in r69776). I've got an EJB3 SLSB declared using annotations. I'm injecting an EJB2 entity hom

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: 5.0.0.Beta4 startup performance problem

2008-03-27 Thread gcoleman
I can cut the startup time to about 5mins by changing org.jboss.ejb3.dependency.EjbLinkDemandMetaData with the following patch. I stole some code from the ObjectName constructor. It's quick, dirty and not production quality but proves the point that relying on Exceptions for flow control is a b

[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: 5.0.0.Beta4 startup performance problem

2008-03-27 Thread gcoleman
I should add that there are dependency errors for about 40 different beans once the server finally starts up. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139215#4139215 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[jboss-user] [Installation, Configuration & DEPLOYMENT] - 5.0.0.Beta4 startup performance problem

2008-03-27 Thread gcoleman
I've got an ear with about 30 EJB modules. The modules are either all entity beans or all SLSBs/MDBs (this is to let us migrate session beans to EJB3 without having to do the entities at the same time). I've got two versions of the same ear: one pre-migration with all EJB2 modules, and one wher

[jboss-user] [Beginners Corner] - Re: JBoss 4.0.5 and JSF Faces context not found

2007-04-05 Thread gcoleman
What URL are you requesting? index.jsp or index.jsf? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034986#4034986 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034986 ___ jb

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Troubles with using PhaseListener implementation

2007-03-16 Thread gcoleman
It looks like your class com.fabulous_valley.web.MyPhaseListener does implement the PhaseListener interface. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028799#4028799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2006-12-15 Thread gcoleman
I agree - the state of EJB unit testing does seem to be a bit depressing. A lot of these projects are dormant. We're using MockEJB for some out of container testing of EJBs here, though we don't do anything too complex. It may be that it doesn't have the feature you need. A forum post indicated

[jboss-user] [EJB/JBoss] - Re: Unit Testing Practices

2006-12-13 Thread gcoleman
There are a few frameworks for testing EJBs: MockEJB: http://www.mockejb.org/ Cactus: http://jakarta.apache.org/cactus/index.html JUnitEE: http://www.junitee.org/ and I'm sure there are more hanging around the web somewhere. Out of those three MockEJB is the only one that runs outside the app

[jboss-user] [Messaging, JMS & JBossMQ] - Re: Frustration with basic client and broken examples.

2006-11-07 Thread gcoleman
In your first code snippet you're using annotations to get the reference to the queue: @Resource(mappedName="queue/A") Queue queue; In the second you're using a JNDI lookup. I've not used annotations to do this sort of thing so don't know much about how that's supposed to work, but that appears

[jboss-user] [EJB/JBoss] - Re: EJB client form validation?

2006-10-17 Thread gcoleman
You could try Hibernate validations: http://www-128.ibm.com/developerworks/java/library/j-hibval.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978751#3978751 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978751

[jboss-user] [Clustering/JBoss] - Re: cluster license

2006-09-15 Thread gcoleman
No. JBoss is free, open source software. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971879#3971879 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971879 ___ jboss-user mai

[jboss-user] [Beginners Corner] - Re: jboss can utilize multiple CPUs?

2006-09-08 Thread gcoleman
No, that's not what he said. JBoss uses multiple threads. To illustrate this you could have a look at a thread dump (see the wiki). The operating system (Windows, Linux, FreeBSD, etc..) will then be able to schedule the threads on as many CPUs as are available. PeterJ's comment is just how th

[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Minimal Web Server in JBoss

2006-08-23 Thread gcoleman
Why not just use the minimal configuration that comes with JBoss? Use the following to start JBoss: run.bat -c minimal Or if you're just using JSPs and servlets you could use plain Tomcat and get rid of JBoss altogether. Also see the wiki. View the original post : http://www.jboss.com/index.h

[jboss-user] [Messaging, JMS & JBossMQ] - Re: jms ha + remote client

2006-08-07 Thread gcoleman
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=88064 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963609#3963609 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963609

[jboss-user] [Clustering/JBoss] - Re: Accessing JbossMQ clustered from a standalone applicatio

2006-08-04 Thread gcoleman
When you're looking up the queue, you need to use HA-JNDI with a URL that points to all of the nodes in the cluster. E.g. For a three node cluster the JNDI URL could be: 192.168.0.1:1100,192.168.0.2:1100,192.168.0.3:1100 The client will then try each server in turn until it reaches one. There i

[jboss-user] [EJB/JBoss] - Re: JBOSS is crashing..

2006-07-28 Thread gcoleman
Firstly, I'd upgrade JBoss and check that your JDK is up to date. Stack traces: http://wiki.jboss.org/wiki/Wiki.jsp?page=StackTrace http://wiki.jboss.org/wiki/Wiki.jsp?page=GenerateAThreadDumpWithTheJMXConsole View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961

[jboss-user] [Messaging, JMS & JBossMQ] - Re: Information about JBoss Queue

2006-07-20 Thread gcoleman
Google for "JMS" or "Java messaging". JMS is part of J2EE and not JBoss-specific. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959533#3959533 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959533

[jboss-user] [EJB/JBoss] - Re: stateless session bean is caching data ???

2006-07-14 Thread gcoleman
This is expected behaviour. SLSB aren't stateless in the sense that a new one is created with every call (the application server will be doing pooling etc). They are stateless in the sense that they are not tied to a particular client like Stateful Session EJBs are. A good explanation can be fo