Re: OpenJPA on Tomcat

2009-05-18 Thread Ognjen Blagojevic
Hi Peter, Did you put Postgres JDBC jar (say, postgresql-8.3-603.jdbc4.jar) in the tomcat/lib? Double check that persistance.xml is correctly deployed into tomcat/webapp. Also, try to change jdbc/StarjarEnterprise5DS, into java:comp/env/jdbc/StarjarEnterprise5DS, end let us know do you get

Re: How to encrypt DB password in persistence.xml

2009-05-18 Thread wang yu
Hi Kevin, Thanks. The link you gave indicate how to extend BasicDataSourceFactory. But I guess this approach isn't feasible for OpenJPA. I need to extend BasicDataSource directly, right? And you mentioned there were other instructions on extending the BasicDataSource. Can you make it clearer?I

Re: Inheritance: Subclasses are not recognised

2009-05-18 Thread Jasmin Riemer
Hello everybody, after spending half of my weekend, I got it to work. I do not know exactly WHY it works that way, but I think this is marginal ;) If someone can explain it to me, feel free to do so, I would be glad. It seems that the cause was a combination of bad Spring configuration and

Re: How to encrypt DB password in persistence.xml

2009-05-18 Thread Kevin Sutter
Hi Yu Wang, My apologies, but I'm not an expert with DBCP. I just thought I would do a quick Google search to see what's out there and I found a few hits, one of which I posted to my previous reply. Since you seem to be interested in encrypting the password being sent in to DBCP, you will

Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Naomi-san
Hello everybody, I have got another problem. This time it is a problem with runtime enhancement. I am enhancing my classes with the following ant script started from Eclipse: project name=jpa_enhance_builder path id=enhance.cp pathelement

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Donald Woods
Since you're using Eclipse, maybe taking a look at the experimental Eclipse plugin for OpenJPA 1.2 would help? http://people.apache.org/~ppoddar/eclipse/ -Donald naomi-...@gmx.de wrote: Hello everybody, I have got another problem. This time it is a problem with runtime enhancement. I am

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Naomi-san
Hello Donald, thank you very much for your answer. I already heard of that plug-in and would use it in case of doubt. But because of some security restrictions in my company also including Eclipse plug-ins, I would prefer an Ant solution to be able to hand-off the project without forcing

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Rick Curtis
Is it possible that only a portion of your Entities are being enhanced by the build script? How are you invoking the ant build script? -Rick -- View this message in context: http://n2.nabble.com/Runtime-Enhancement%3A-Problems-with-Ant-Task-in-Eclipse-tp2932839p2933295.html Sent from the

Fwd: strange JPA Enhance stack

2009-05-18 Thread Marc Logemann
Hi, really noone who can explain the stack? I double checked that this is not a SERP version problem but OpenJPA is the only library using SERP. Looking at the SERP sourcecode reveals that it is more related to some dynamic bytecode introspecition and not a version issue. Why cant the

Re: strange JPA Enhance stack

2009-05-18 Thread Rick Curtis
-Marc Any luck with the suggestion that David made? David Beer-2 wrote: On Sat, 16 May 2009 15:32:36 +0200 Marc Logemann l...@logemann.org wrote: Hi Marc Can't seem that it is OpenJDK 6 related as I use it here for both my development and continous build system (hudson under

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Naomi-san
Hi Rick, I also had that thought, but the message lists all of my entities, so I think they all have not been enhanced. I oriented on the following tutorial for creating and invoking the build script: http://webspherepersistence.blogspot.com/2009/04/openjpa-enhancement-eclipse-builder.html I

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Rick Curtis
-Naomi I don't think you want to invoke the script after a Clean, my vauge understanding is that would be used to clean up resources that Eclipse wouldn't have cleaned up as part of a normal clean. In the blog posting, it shows to invoke the enhancer script on a manual and auto build, have you

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread David Ezzio
Hi Naomi, Three easy ways to verify that your classes have been enhanced. One install DJ Decompiler (Windows) or another decompiler and verify that the class file is enhanced. Two, run the JDK command: javap -c classname-without-dot-class and look for a bunch of methods with names that start

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Naomi-san
Hey David, thank you for the tip! I checked one of my entities with javap: 1. After a clean and manually invoking the enhance task 2. After execution of my application Both times the class has pc* methods, so it seems that they are enhanced and not overwritten by Eclipse. So why the error

How Slice module is invoked?

2009-05-18 Thread Anurag Rai
Hi all, I was looking into OpenJPA code (kernel, persistence mainly) to understand how the control is transferred to the Slice module. When using Slice we set the value of property openjpa.BrokerFactory to slice. I searched in PersistenceProviderImpl, EntityManagerFactoryImpl, BootStrap,

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Rick Curtis
-Naomi Is it possible that your application is running off some classes(perhaps in another jar) that you compiled previously before you setup the enhancer? -Rick Naomi-san wrote: Hey David, thank you for the tip! I checked one of my entities with javap: 1. After a clean and

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Craig L Russell
Hi Naomi, On May 18, 2009, at 8:34 AM, naomi-...@gmx.de wrote: Hey David, thank you for the tip! I checked one of my entities with javap: 1. After a clean and manually invoking the enhance task 2. After execution of my application Both times the class has pc* methods, so it seems that they

Re: Enhancer problem, using ant

2009-05-18 Thread Rick Curtis
Michael - When you define your openjpac task, you're missing some of the required classes. You could change your openjpac taskdef to something like: taskdef classpath=${jpa.lib}/openjpa-1.2.1.jar;${jpa.lib}/commons-lang-2.1.jar;commons-collections-3.2.jar name=openjpac

Re: Uncommited objects and Select performance

2009-05-18 Thread Rick Curtis
Jan - Have you enhanced your Entities? What is the environment that you are running in? -Rick Janek-2 wrote: Hi, I have performance problem with queries on uncommited data. I run huge import, with commit at each 1 items. During import I make lot of selection queries (to protect

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Naomi-san
Hi, so far, I just worked with one binary folder and did not create jars from the project, too. I checked the whole workspace and the eclipse classpath but did not find any double classes or imports. I even removed all classes from the binary folder and rebuilt them. I debugged my application

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Craig L Russell
Hi Naomi, On May 18, 2009, at 1:11 PM, naomi-...@gmx.de wrote: Hi, so far, I just worked with one binary folder and did not create jars from the project, too. I checked the whole workspace and the eclipse classpath but did not find any double classes or imports. I even removed all

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Rick Curtis
Naomi - I'm stumped as well... I'd say start over with a new small project and see if you can get that working. If you are unable to get the small project working, you can post a zip for us and someone will look at it. I'm still leaning toward an environment problem. -Rick Craig L Russell