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 :
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 :
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:
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
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
___
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
This works:
| Properties defaultProperties = new Properties();
| try {
|
defaultProperties.load(getClass().getResourceAsStream(/default.runtime.properties));
| } catch (IOException e) {
| log.error(Unable to open default properties
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
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
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
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
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
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 :
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
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.
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
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.
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
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
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
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
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
/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
|
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
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
25 matches
Mail list logo