Re: Still not working

2010-05-14 Thread Ян Программист
> You can configure OpenJPA to define this table > 1. Use >valie="buildSchema(ForeignKeys=true)"/> > Not "valie", but "value". Mismatch ;) > > in persistence.xml configuration. Inacceptable. There is no 100% guarantee that this param would be checked at runtime. > 2. Or create the sequenc

Still not working

2010-05-13 Thread Ян Программист
Hi. I have new errors: 193 embeddables INFO [main] openjpa.Runtime - Starting OpenJPA 2.0.0-beta3 404 embeddables INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.HSQLDictionary". Exception in thread "main" org.apache.openjpa.persistence.RollbackExceptio

PCEnhancer logging

2010-05-13 Thread Ян Программист
I tried to force PCEnhancer to start logging using log4j facilities. But had some problems. Here is my command line looks: -Dlog4j.appender.console=org.apache.log4j.ConsoleAppender -Dopenjpa.Log=log4j -Dlog4j.category.openjpa.Enhance=TRACE -classpath /home/webautomator/openjpa-all-2.0.0-beta3.jar:

Re: Enhancer logging

2010-05-12 Thread Ян Программист
I was inattentive. John 2010/5/12 Rick Curtis > > http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_logging > > 2010/5/12 Ян Программист > > > Is there a way to produce logs for PCEnhancer tool? It does not show what > > it &g

Re: Enhancement checks

2010-05-12 Thread Ян Программист
OK. I will check that. John 2010/5/12 Rick Curtis > Not sure what you mean by "(in binary mode)", but classes that have been > enhanced will implement org.apache.openjpa.enhance.PersistenceCapable. > > 2010/5/12 Ян Программист > > > How to externally check (in b

Enhancer logging

2010-05-12 Thread Ян Программист
Is there a way to produce logs for PCEnhancer tool? It does not show what it is doing by default. John

Enhancement checks

2010-05-12 Thread Ян Программист
How to externally check (in binary mode) if some classes are enhanced byte PCEnhancer? John

Re: OPENJPA-1642

2010-05-12 Thread Ян Программист
Using ant to initiate enhancer brings risks and troubles for deploying to production environment. So I created an external tool type builder for Eclipse: Location: /usr/bin/java Working Directory: ${workspace_loc:/openJPA/src} Arguments: -classpath /home/webautomator/openjpa-all-2.0.0-beta3.jar

OPENJPA-1642

2010-05-08 Thread Ян Программист
Your workaround, Michael, has no effect. Here is my persistence.xml (updated): http://java.sun.com/xml/ns/persistence"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="1.0"> reversemapping/orm.xml hellojpa.Message relations.Deity

Re: OpenJPA test suite error

2010-05-08 Thread Ян Программист
irst module (openjpa-lib), notice that there are no > tests > > and stop executing. > > > > Unfortunately the documentation was written with an older version of > Maven > > which didn't require -DfailIfNoTests (I think that was new sometime > around > > maven

OPENJPA-1642

2010-05-08 Thread Ян Программист
Hi. People, I really need help with that bug. I can't proceed with coding until I could provide normal config. John

Re: OpenJPA test suite error

2010-05-08 Thread Ян Программист
; Unfortunately the documentation was written with an older version of > Maven > > which didn't require -DfailIfNoTests (I think that was new sometime > around > > maven 2.0.8). > > > > I'll update the doc. Thanks for letting us know, > > -mike > >

OpenJPA test suite error

2010-05-07 Thread Ян Программист
$ mvn test -Dtest=TestPersistence -Dopenjpa.loglevel=TRACE [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] OpenJPA Parent POM [INFO] OpenJPA Utilities Library [INFO] OpenJPA Kernel [INFO] OpenJPA JDBC [INFO] OpenJPA Persistence [INFO] OpenJPA Persistence JDBC [INFO]

Exception

2010-04-30 Thread Ян Программист
If i try the following: 1221 embeddables ERROR [main] openjpa.Runtime - Failed to create a provider for "embeddables". java.lang.RuntimeException: There were errors initializing your configuration: java.lang.ClassCastException: org.apache.openjpa.conf.OpenJPAConfigurationImpl cannot be cast

Re: DataSource initialization error

2010-04-29 Thread Ян Программист
ence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:151) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:57) at Main.main(Main.java:42) 2010/4/28 Ян Программист > value="org.apache.openjpa.jdbc

Re: [jira] Created: (OPENJPA-1642) ClassCastException caused when using property 'openjpa.Sequence'

2010-04-28 Thread Ян Программист
Thanks! John 2010/4/28 Heath Thomann (JIRA) > ClassCastException caused when using property 'openjpa.Sequence' > > > Key: OPENJPA-1642 > URL: https://issues.apache.org/jira/browse/OPENJPA-1642 >

DataSource initialization error

2010-04-28 Thread Ян Программист
I added following line to my configuration: Following exception was thrown: embeddables ERROR [main] openjpa.Runtime - Failed to create a provider for "embeddables". java.lang.RuntimeException: There were errors initializing your configuration: java.lang.ClassCastException: org.apache.openjpa.co