[jboss-user] [JCA/JBoss] - Re: Errors Migrating no-tx-datasource from 4.0.5 to 4.2.2

2007-11-11 Thread jantzen
The identical EAR works fine (loads and runs) in 4.0.5 and in 4.2.1. I also see the same error coming out of a fundamentally identical PostgreSQL DS file. Did something change in 4.2.2 regarding no-tx-datasources? View the original post :

[jboss-user] [JCA/JBoss] - Re: Errors Migrating no-tx-datasource from 4.0.5 to 4.2.2

2007-11-11 Thread jantzen
Ok, I've got the datasources working in a different EAR, so it's not those. Something else is wonky with this EAR. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4103517#4103517 Reply to the post :

[jboss-user] [JCA/JBoss] - Errors Migrating no-tx-datasource from 4.0.5 to 4.2.2

2007-11-09 Thread jantzen
Hi All, I'm trying to run a couple applications in 4.2.2. These work fine in 4.05., but I'm seeing errors at startup now: --- MBeans waiting for other MBeans --- | ObjectName: persistence.units:ear=DatabaseImport.ear,jar=DatabaseImport.jar,unitName=MediaWikiDBImporterRole | State:

[jboss-user] [JCA/JBoss] - Non Serialized XAResources Warnings with JBoss 4.2, PostgreS

2007-07-18 Thread jantzen
I'm trying to migrate from 4.0.5 to 4.2, and I'm hitting problems with my datasources. I learned in this process that 4.2 does not support multiple local TX datasources (http://www.jboss.com/index.html?module=bbop=viewtopicp=3988662). So, I changed my datasources to be XA's. But, now I get

[jboss-user] [JCA/JBoss] - Re: Non Serialized XAResources Warnings with JBoss 4.2, Post

2007-07-18 Thread jantzen
Yay for title truncation. That's PostgreSQL 8.1.9 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4065635#4065635 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065635 ___

[jboss-user] [Installation, Configuration Deployment] - Reading Runtime Property Files from EAR

2007-07-04 Thread jantzen
specifying the alt-dd element. Any suggestions? Thanks, jantzen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4060572#4060572 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060572

[jboss-user] [Installation, Configuration Deployment] - Re: Reading Runtime Property Files from EAR

2007-07-04 Thread jantzen
This works: | Properties defaultProperties = new Properties(); | try { | defaultProperties.load(getClass().getResourceAsStream(/default.runtime.properties)); | } catch (IOException e) { | log.error(Unable to open default properties

[jboss-user] [EJB 3.0] - Re: Entity relationship and remove operations

2007-04-05 Thread jantzen
I'm facing a similar problem with child entities not being deleted with their parents. The exception I see is javax.persistence.EntityNotFoundException: deleted entity passed to persist, and it looks like the entity manager is trying to persist the child entities with null references to the

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - SessionException: session closed after very large native que

2007-01-22 Thread jantzen
Hi All, I've got a PostgreSQL 8.1 database that I'm performing a series of large queries on under JBoss 4.0.5, and the EntityManager is closing after each query such that the next fails. The queries are native SQL, and return in excess of 250,000 rows. The datasource is defined as

[jboss-user] [EJB 3.0] - Service Beans in Embeddable EJB 3.0?

2007-01-03 Thread jantzen
Service beans will work: http://docs.jboss.org/ejb3/embedded/embedded.html But I see an exception when I try to look one up: local not bound | javax.naming.NameNotFoundException: local not bound Anyone know of a workaround? Thanks, Jantzen View the original post : http://www.jboss.com

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

2007-01-03 Thread jantzen
Okay, the documentation is wrong. I finally got the embedded server to load my Entity beans, MDBs, and Stateless Session beans, but Service beans are a no go. Anybody know of a workaround? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3997774#3997774 Reply

[jboss-user] [EJB 3.0] - Re: Looking up Datasource from Client

2007-01-03 Thread jantzen
Hey Gommo, how's it going? I'm able to do a JNDI lookup for the datasource using the value of the jta-data-source tag. So, I belive this would work for you: | InitialContext ctx = new InitialContext(); | Object ds = ctx.lookup(java:/PostgresDS); | I'm not clear on why in the

[jboss-user] [EJB 3.0] - Re: Service Beans in Embeddable EJB 3.0?

2007-01-03 Thread jantzen
HI Jazir, I've got the naming properties you describe in place, and I'm looking up stateless beans with the kind of JNDI name you're describing. I'm not sure where EJB Embedded writes its logs though. Which logfile are you looking at? Thanks View the original post :

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

2007-01-02 Thread jantzen
gommo wrote : | When my test targets are run the source is compiled in build\ and also most classes are also copied to build-tests (The reason I have done this is the embedded server didn't support all things like ServiceBeans etc..) so I dont copy them over | Are you sure Service beans

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

2006-12-25 Thread jantzen
Thanks for the help Gommo. I've been trying to get unit tests working inside of my primary development directory tree, which has created problems with finding config files, building properly etc. I'll try a separate test hierarchy like you've got and see if I make it any farther this time.

[jboss-user] [JBoss Eclipse IDE (users)] - Re: Memory Leak in JBoss IDE?

2006-12-19 Thread jantzen
Hmm, PermGen space ... Looking at my workspace/.metadata/.log file I see: | !ENTRY org.eclipse.core.jobs 4 2 2006-12-18 18:48:46.390 | !MESSAGE An internal error occurred during: EL Syntax Validator. | !STACK 0 | java.lang.OutOfMemoryError: PermGen space | | !ENTRY

[jboss-user] [JBoss Eclipse IDE (users)] - Memory Leak in JBoss IDE?

2006-12-18 Thread jantzen
Eclipse 3.2.1 JBoss IDE 2.0 beta2 plugin Sun Java 1.5.0_08 (64 bit) Debian I've been seeing tremendous instability in Eclipse ever since migrating from JBossIDE 1.6 to the 2.0 beta. In particular, operations like hibernate code generation and reverse engineering routinely result in crashes.

[jboss-user] [JBoss Eclipse IDE (users)] - Re: JBoss IDE default server setting

2006-12-18 Thread jantzen
Hi Syed, You should say what version of JBossIDE you're using since there were some pretty big changes from 1.5/1.6 to 2, but here's a guess anyway ... I believe you need to create the server first, since JBossIDE doesn't know where JBoss is installed in all cases and so can't configure it

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

2006-12-13 Thread jantzen
Thanks for the suggestions. But, are these actually capable of testing EJB3s? MockEJB hasn't been updated in two years and I'm doesn't look like it supports dependency injection. JUnitEE is also two years out of date and doesn't work with either JUnit 3.8 or 4.1, and doesn't say what

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

2006-12-12 Thread jantzen
Greetings, Is there a standard way of unit testing EJBs? My goal is to test Entity and Stateless session beans using JUnit, and without deploying them to the server. It looks like EJB3 Embedded is an option, but that seems like a poorly maintained and supported project (still in alpha since

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Unable to Connect to C3P0 Connection Pool with JPA under 4.0

2006-11-05 Thread jantzen
Hi All, I'm attempting to connect to a PostgreSQL database via a database pool and seeing some odd behavior: JBoss 4.0.5 c3p0-0.9.1-pre6.jar PostgreSQL 8.1 It looks to me that the pool is starting correctly, as I see it in the logs | 22:26:16,920 INFO [C3P0PooledDataSource] Bound C3P0

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Trouble Configuring a Persistence Unit

2006-11-02 Thread jantzen
Well, something got fixed in JBoss 4.0.5 because the same code now works as expected. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3982792#3982792 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3982792

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: How to deploy EJB3 Entity Bean into PersistenceUnit dyna

2006-11-02 Thread jantzen
/hib_docs/entitymanager/reference/en/html/configuration.html HTH, Jantzen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3982794#3982794 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3982794

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Trouble Configuring a Persistence Unit

2006-10-17 Thread jantzen
| From within Eclipse and as a Jar running from the command line, the above results in: | FILE file:/home/jantzen/eclipse/DataTier/bin/META-INF/persistence.xml | Exception in thread main javax.persistence.PersistenceException: No Persistence provider for EntityManager named test

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Trouble Configuring a Persistence Unit

2006-10-17 Thread jantzen
This is happening with the Java.net AddressBook example (http://today.java.net/pub/a/today/2006/05/23/ejb3-persistence-api-for-client-side-developer.html) too, so it must be an environment configuration issue. Also, I'm able to set up a regular old Hibernate SessionFactory directly and query