Re: Setup tutorial?

2007-08-27 Thread David Blevins
Looks like i missed the last part. On Aug 27, 2007, at 11:50 AM, deniskulik wrote: I will try to look at how things work with jpa, ejbs, mdbs and etc more closely. Can anyone please point me to the place where I could find more or less up to date info on how they can be configured? We're

Re: How to confiigure an container managed EntityManger in an embeded server?

2007-08-27 Thread David Blevins
That looks exactly right. Let me see if I can whip up a quick example with similar settings and see if we can't figure out what might be going. We need the example anyway. -David On Aug 27, 2007, at 9:00 PM, Paul Spencer wrote: David, See below. David Blevins wrote: On Aug 26, 2007

Re: How to confiigure an container managed EntityManger in an embeded server?

2007-08-29 Thread David Blevins
. -David Paul Spencer David Blevins wrote: That looks exactly right. Let me see if I can whip up a quick example with similar settings and see if we can't figure out what might be going. We need the example anyway. -David On Aug 27, 2007, at 9:00 PM, Paul Spencer wrote: David, See below

JPA Examples (was: Re: Setup tutorial?)

2007-08-29 Thread David Blevins
On Aug 28, 2007, at 2:59 PM, deniskulik wrote: David Blevins wrote: On Aug 27, 2007, at 11:50 AM, deniskulik wrote: I will try to look at how things work with jpa, ejbs, mdbs and etc more closely. Can anyone please point me to the place where I could find more or less up to date info on how

Re: Setup tutorial?

2007-08-30 Thread David Blevins
On Aug 28, 2007, at 2:55 PM, deniskulik wrote: Hi David, Here is a couple of thoughts on your previous message. David Blevins wrote: I've put together a doc with the options: http://cwiki.apache.org/ OPENEJB/application-discovery-via-the-classpath.html I looked at the article, which

Re: What new in OpenEjb 3.0?

2007-09-05 Thread David Blevins
Putting up a page with some of that data: http://cwiki.apache.org/OPENEJB/new-in-openejb-30.html Still updating, should have it done in another hour or so. Note, we don't support JAX-WS Web Services just yet. -David On Sep 5, 2007, at 9:57 AM, Mohammad Nour El-Din wrote: Hi Ashish...

Re: Using openejb in unittest with maven2

2007-09-25 Thread David Blevins
We are anxiously awaiting OpenJPA to finish it's unenhanced support so we can do CMP and JPA without a java agent. Until then, include a chunk like this in your pom and you should be good to go. It's a lot of tags, but it's essentially just doing two things: copy the agent jar from the

Re: Using openejb in unittest with maven2

2007-09-25 Thread David Blevins
Just to follow up. Thanks for the feedback, it really helps for people to post things and say What does this mean, what do I do next? We very much appreciate it. For this particular item, I've added some code to remove the stack trace and handle the situation with a clean log message

Re: Where do I get javax.persistence package?

2007-10-29 Thread David Blevins
On Oct 23, 2007, at 11:52 AM, satsuma wrote: I got rid off the compilation errors, although I have errors while deploying, but I'll try to read about EJB 3.0 and solve these issues myself. I'll get back to the forum, if I can not solve the problems. Following up to see if you were to

Re: Exception while using embedded openejb for testing in eclipse

2007-11-07 Thread David Blevins
On Nov 6, 2007, at 9:37 PM, David Blevins wrote: Hi Per, It isn't clear what's causing the issue based on the stack trace (NoClassDefFoundErrors usually require some debugging). I'm going to try and convert one of our examples into an eclipse project and see if I can't get something

Re: JNDI lookup help

2007-11-09 Thread David Blevins
.eclipse .jdt .internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org .eclipse .jdt .internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java: 196) Thank you for all your help, Casey On Nov 7, 2007, at 2:33 PM, David Blevins wrote: On Nov 7, 2007, at 6:14

Re: JNDI lookup help

2007-11-11 Thread David Blevins
Casey On Nov 9, 2007, at 4:09 PM, David Blevins wrote: On Nov 9, 2007, at 1:01 PM, Casey Rayman wrote: Unfortunately my Weblogic experience is clearly boxed in at version 7, and I wouldn't say that my experience runs real deep there either. I've only been tinkering with this application

Re: JNDI lookup help

2007-11-12 Thread David Blevins
To make sure everything is absolutely perfect, I've hacked up an example of using the weblogic descriptors. And for the first time ever, I hacked up an Ant build.xml to run the example as I know that's what you're using. You can get the example via: svn export

Re: NameNotFoundException: Name openejb is not bound in this Context

2007-12-19 Thread David Blevins
Ok. Yank the openejb.war you have now and give this one a try. Best do that while tomcat is shutdown. http://people.apache.org/~dblevins/openejb-tomcat-3.0.0-SNAPSHOT.war The java:openejb/Resource/myDataSource reference should resolve. -David On Dec 19, 2007, at 5:11 PM, David Blevins

Re: Possible bug? Related to spec reference 6.2.1.6

2007-12-22 Thread David Blevins
On Dec 22, 2007, at 5:13 PM, Alexander Saint Croix wrote: Howdy. The 3.0 persistence spec, section 6.2.1.6, indicates that jar-file elements in the persistence.xml should be relative to the root of the persistence unit. However, I've found that it's digging from the root of the tomcat

Re: OpenEJB war for Tomcat 5.5

2007-12-27 Thread David Blevins
Paul, I have basic support for Tomcat 5.5 working and checked in. Couple limitations and things to be aware of: 1. Tomcat still will not support the Servlets 2.5 API or web.xml 2. Dependency Injection not yet working for Filters (works for serlvets and listeners) 3. JAX-WS support

Re: Help for configuring openejb

2007-12-29 Thread David Blevins
(Assembler.java: 206) ... 11 more Thanks for your quick response, david. Joe David Blevins wrote: Hi Joe, The config looks ok at first glance. Can you send a full stack trace of the NullPointerException? -David On Dec 23, 2007, at 9:29 PM, xianzheng wrote: Hi, I'm a new openejb user

Re: Possible bug of redeploying package

2008-01-02 Thread David Blevins
On Jan 2, 2008, at 12:03 PM, Dain Sundstrom wrote: Joe, This is definitely a bug. Can you file a bug report in our JIRA (https://issues.apache.org/jira/browse/OPENEJB)? This is one we will need to get fixed before the next release. Filed

Re: OpenEJB - Datasource lookup problem

2008-01-08 Thread David Blevins
we might be able to get OpenEJB 3.0 to run in Tomcat 4.1.x. OpenEJB 3.0 is better in many ways including it's Tomcat integration. -David David Blevins wrote: On Jan 6, 2008, at 9:29 AM, ManojS wrote: Thank you very much Mohammad and Jacek for your quick replies. Yes, I missed to set

Re: ClassNotFoundException: JaccProvider$Factory

2008-01-16 Thread David Blevins
On Jan 16, 2008, at 12:15 PM, Dain Sundstrom wrote: Caused by: java .lang .ClassNotFoundException:org.apache.openejb.core.security.JaccProvider $Factory at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method)

Re: ClassNotFoundException: JaccProvider$Factory

2008-01-16 Thread David Blevins
On Jan 16, 2008, at 12:30 PM, David Blevins wrote: On Jan 16, 2008, at 1:34 AM, Martin Vysny wrote: Hi guys, can you please help me with this one? Rarely, the OpenEJB startup fails with the exception ClassNotFoundException: JaccProvider$Factory (full stacktrace is below). The interesting

Re: ClassNotFoundException: JaccProvider$Factory

2008-01-21 Thread David Blevins
On Jan 21, 2008, at 7:19 AM, Martin Vysny wrote: On Wed, 2008-01-16 at 14:16 -0800, David Blevins wrote: On Jan 16, 2008, at 12:15 PM, Dain Sundstrom wrote: Caused by: java .lang .ClassNotFoundException:org .apache.openejb.core.security.JaccProvider $Factory at java.net.URLClassLoader

Re: OpenEJB - Missing required persistence.xml

2008-02-12 Thread David Blevins
It seems like what's happening is eclipse isn't configured to copy in the src/*/resources files into the related build output directories. To see if I could replicate the issue, I grabbed our injection-of- entitymanager example from the examples zip and generated an eclipse project for it

Re: OpenEJB - Missing required persistence.xml

2008-02-13 Thread David Blevins
On Feb 13, 2008, at 6:26 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I get: Apache OpenEJB 3.0-beta-2build: 20080131-03:38 http://openejb.apache.org/ - openejb.home = C:\workspace\TestFacade\target - openejb.base = C:\workspace\TestFacade\target - Configuring Service(id=Default

Re: OpenEJB maven problem

2008-02-14 Thread David Blevins
On Feb 7, 2008, at 12:06 AM, Martin Vysny wrote: On Wed, 2008-02-06 at 14:12 -0800, David Blevins wrote: You should give the recently released 3.0-beta-2 a try. http://www.apache.org/dist/openejb/3.0-beta-2/ David, thanks, great news! ;) Do you know when it will be released

Re: OpenEJB - Missing required persistence.xml

2008-02-14 Thread David Blevins
On Feb 14, 2008, at 6:29 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks a lot again, I have now made one errors progress: Now the problem seems to be that the entities in the database are not automatically created. Is this possible or do I have to do it on my own? Thanks,

Re: Load time dependency ordering problem

2008-02-15 Thread David Blevins
On Feb 11, 2008, at 6:56 AM, Jack Cox wrote: David, Thanks for the response. Using the application.xml to group the class directories did not have the desired effect. The loader still sees them as separate 'jars' and appear to be classloaded separately. In their 'in-container'

Re: OpenEJB - Missing required persistence.xml

2008-02-15 Thread David Blevins
On Feb 15, 2008, at 9:36 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, well it works now. Because I have changed the persistence provider to Hibernate. The problem now is that entities are not persisted. persist() simply does nothing. But no error is shown. The persistence.xml

Re: OpenEJB - Missing required persistence.xml

2008-02-15 Thread David Blevins
On Feb 15, 2008, at 4:03 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Not working, the tables are not created. Now I get this: Auto-commit can not be set while enrolled in a transaction I'm very interested in how you got this error so I can fix any related checks we have. In

Re: OpenEJB - Missing required persistence.xml

2008-02-16 Thread David Blevins
On Feb 16, 2008, at 1:22 PM, Karsten Ohme wrote: On Feb 15, 2008, at 2:46 PM, Jacek Laskowski wrote: On Feb 15, 2008 2:37 PM, David Blevins [EMAIL PROTECTED] wrote: The Auto-commit error usually means is that either a) only the jta- data-source is configured in your persistence.xml so

Re: Errors shutting down Tomcat with OpenEJB 3 Beta-2

2008-02-17 Thread David Blevins
This one is going to take a bit of digging. -David On Feb 16, 2008, at 12:48 AM, AdamO wrote: I've noticed INFO: Illegal access: messages in my Tomcat log while testing beta-2. I haven't had the messages with beta-1. Does anyone know what's wrong? I have also tried with clean Tomcat

Tomcat 5.5 instructions (Re: OpenEJB Version 3.0 beta 2 fails to initialize during deployment)

2008-02-17 Thread David Blevins
This is my fault as I forgot to update the docs when I ported our integration back to 5.5. For 5.5 you drop the openejb.war into server/webapps/ then create a context xml file like the following in conf/Catalina/localhost/ and restart Tomcat. Context path=/openejb

Re: OpenEJB - Missing required persistence.xml

2008-02-18 Thread David Blevins
On Feb 18, 2008, at 11:26 AM, David Blevins wrote: - Added a way for Hibernate to get the transaction manager from openejb. There might be another way of doing this other than the persistence.xml. I grabbed the hibernate source and am looking for a better way. Sumbitted a patch

Re: Problems Testing - native SQL - SELECT FOR UPDATE - Pessimistic Locking

2008-02-19 Thread David Blevins
On Feb 19, 2008, at 6:53 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, in my application I use the MySQL specific semantic of SELECT FOR UPDATE, i.e. it locks the selected rows and let all other transactions wait. Now, in my test case I wanted to use the Apache Derby database, because

Re: openejb 3.0 beta 2 on tomcat 5.5.26 listener installation fails

2008-02-19 Thread David Blevins
On Feb 19, 2008, at 10:04 PM, Ehsan Rabby wrote: Hello I am testing out openejb 3.0 beta 2 release with tomcat 5.5.26 I am following the installer link- install java agent Java agent installs fine but tomcat listener fails coz it cant find the lib directory Installation Failed Catalina

Re: Load time dependency ordering problem

2008-02-20 Thread David Blevins
to be in the same classloader and there's no reason we can't support the magic mapping rules we currently have for non-lazy refs for objects deployed in an ear. Anyway, just an fyi. -David David Blevins wrote: On Feb 11, 2008, at 6:56 AM, Jack Cox wrote: David, Thanks for the response

Re: Deploying an EAR with Tomcat

2008-02-23 Thread David Blevins
On Feb 21, 2008, at 3:14 PM, Jonathan Gallimore wrote: Hi, I just gave this: http://www.nabble.com/Tomcat-hot-deployment-td13287215.html a go, and I encountered a minor problem where all my beans were being deployed twice, and I was getting this error:

Re: Load time dependency ordering problem

2008-02-24 Thread David Blevins
On Feb 20, 2008, at 6:16 PM, David Blevins wrote: On Feb 18, 2008, at 7:50 AM, Jack Cox wrote: David, Let me know when you've got some code to test and I'll give it a whirl. Alright, got some code you can test out. With the new code, you have up until you use the bean for your @EJB

Re: Cannot find @Stateless annotation in other module

2008-02-27 Thread David Blevins
On Feb 26, 2008, at 9:48 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I have a working thanks to the help of you a working test. I use TestNG now. Now I use in my bean a reference with @EJB annotation to another bean in another module. The behaviour of the detected modules when

Call for Papers Opens for ApacheCon US 2008

2008-03-01 Thread David Blevins
Call for Papers Opens for ApacheCon US 2008 !REMINDER: this will be a short CFP, ending on 3 April, so please be sure to get your CFP submissions in soon! The Apache Software Foundation (ASF) invites submissions to its official users' conference, ApacheCon US 2008, held 3 November through 7

Interested in writing OpenEJB articles or speaking about OpenEJB?

2008-03-04 Thread David Blevins
Just as a general FYI, if anyone is interested in speaking or writing articles about OpenEJB I am more than happy to help you out in any way I can. Happy to review slides/text, help you get examples running, give you ideas on what to write or speak about, show you some advanced features,

Re: Call for Papers Opens for ApacheCon US 2008

2008-03-04 Thread David Blevins
On Mar 1, 2008, at 11:06 PM, Jacek Laskowski wrote: On Sat, Mar 1, 2008 at 8:09 PM, David Blevins [EMAIL PROTECTED] wrote: Call for Papers Opens for ApacheCon US 2008 What about OpenEJB? Will you go there and spread the word? I recently spoke to a teammate and he couldn't believe how easy

EJB 3.1 Early Draft

2008-03-04 Thread David Blevins
FYI to all out there, we on the EJB 3.1 Expert Group have put up a Early Draft of the EJB 3.1 specification. http://jcp.org/aboutJava/communityprocess/edr/jsr318/index.html The review will be open till March 30, 2008. -David

Re: EJB 3.1 Early Draft

2008-03-04 Thread David Blevins
. When you have that worked out you can apply here: http://jcp.org/en/jsr/egnom?id=318 -David On Tue, Mar 4, 2008 at 11:10 AM, David Blevins [EMAIL PROTECTED] wrote: FYI to all out there, we on the EJB 3.1 Expert Group have put up a Early Draft of the EJB 3.1 specification. http

Re: Interested in writing OpenEJB articles or speaking about OpenEJB?

2008-03-04 Thread David Blevins
is different and there's likely little I can do to help get your book proposal accepted. Though if you do manage to get a book deal, happy to give tips, advice, and technical help as it relates to OpenEJB. -David On Tue, Mar 4, 2008 at 10:15 AM, David Blevins [EMAIL PROTECTED] wrote

Re: Interested in writing OpenEJB articles or speaking about OpenEJB?

2008-03-05 Thread David Blevins
and then start bugging you with questions. Thanks for the offer. Docs are good. We really need more exposure though, are you interesting in writing articles? -David On Tue, Mar 4, 2008 at 3:15 AM, David Blevins [EMAIL PROTECTED] wrote: Just as a general FYI, if anyone is interested

Re: OpenEJB Client with secure socket / SSL

2008-03-05 Thread David Blevins
On Mar 5, 2008, at 2:46 PM, weilu wrote: We have a java application that is a client to geronimo 2.0.2. The client communicates with the server using remote EJBs. How can we enable or configure OpenEJB to use secure sockets? We don't have that feature quite yet. -David

Re: OpenEJB Client with secure socket / SSL

2008-03-05 Thread David Blevins
On Mar 5, 2008, at 3:45 PM, Dain Sundstrom wrote: If weilu switched to the ejbd over http, can't he secure the communication using the web container's https implementation? That might work, but it'd take some hacking. You'd need to add a servlet like this: import

Re: Cannot find @Stateless annotation in other module

2008-03-07 Thread David Blevins
resolution again at runtime. -David Thanks, Karsten On Mar 6, 2008, at 1:32 PM, Karsten Ohme wrote: David Blevins schrieb: Seems there was an issue with paths converted from URLs still containing some encoding and therefore not being accurate. It took nearly all day but I think I

Re: AccessControl exception in JNDIContext.lookup

2008-03-14 Thread David Blevins
It may not be possible, but if you can send a tiny sample applet example I can run, I'll take a stab at adding at getting it running. -David On Mar 13, 2008, at 9:59 AM, molinemc wrote: Hi, I'm trying to use the OpenEJB in an applet, and I encounter the following exception in

Re: Stateless inheritited bean is not found when Interface is not specified

2008-03-14 Thread David Blevins
On Mar 14, 2008, at 4:29 PM, Karsten Ohme wrote: David Blevins schrieb: On Mar 13, 2008, at 10:41 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, NetworkStorageServiceImpl is a Stateless Local Bean. AsyncNetworkStorageServiceImpl also, but extends this bean. When I do

Re: Found ERROR - Error deploying CXF webservice for ejb CalculatorImpl when run web services sample.

2008-03-27 Thread David Blevins
On Mar 27, 2008, at 12:29 AM, Jian-zhi wrote: When I run simple-webservice in openejb-examples-3.0-beta-2.zip file I found the ERROR mesage as below. ... INFO - OpenEJB ready. OpenEJB ready. ** Starting Services ** NAME IP PORT httpejbd 127.0.0.1

Re: Testing Services with access to Entities

2008-03-28 Thread David Blevins
On Mar 25, 2008, at 8:57 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I have want to test some internal used beans which access entity beans. The problem is now, that the unit test wants to test a service which return an entity. This entity has a colelction member, something like

Re: Found ERROR - Error deploying CXF webservice for ejb CalculatorImpl when run web services sample.

2008-03-28 Thread David Blevins
that. Anyway, I sort of hacked around it by adding cxf-bundle-2.0.4- incubating to the m2-snapshot-repository. Give the example another try and it should work. -David David Blevins wrote: Seems like you've got some bad maven repo state. Try deleting the following directory and running it again

Re: Eclipse Multiple Projects and Missing persistence.xml

2008-04-02 Thread David Blevins
On Mar 30, 2008, at 8:29 PM, Chad and Doria Skinner wrote: I have a project I am working on and we have separated our business model from our business logic by placing them into different projects in eclipse. These projects are both jars that are placed in our ear file. When I try to run a

Re: OpenEJBListener and Eclipse

2008-04-02 Thread David Blevins
Hi Mike, I'm not too sure how Eclipse starts and manages Tomcat. Dario, I seem to recall you mentioning this exact situation in your Tomcat/OpenEJB article. Do you happen to have any insight? -David On Apr 1, 2008, at 3:29 AM, Mike Otto wrote: Hello I am testing out openejb 3.0 beta 2

Re: Web Service and EJB 3 problem

2008-04-02 Thread David Blevins
On Mar 31, 2008, at 12:03 PM, Dru Devore wrote: I am REALLY new to openejb, though not ejbs, and I am having problems. I am trying to deploy a project developed in NetBeans for Glassfish to Tomcat/OpenEJB. I need to develop a method of reliably deploying a project being developed in NB as an

Re: Tomcat - Injection: No such property

2008-04-02 Thread David Blevins
On Mar 29, 2008, at 1:14 PM, ebaxt wrote: I'm trying to run my application with Tomcat+openEJB, but I can't figure out why the EntityManager isn't injected correctly into the EAO sessionbean. My war file is packed with the ejb.jar in \WEB-INF\lib. The client is able to lookup the facade,

Re: Tomcat - Injection: No such property

2008-04-02 Thread David Blevins
On Apr 2, 2008, at 3:30 PM, klewelling wrote: You may want to try setting the properties as system properties, i.e. java ... - Djava .naming .factory.initial=org.apache.openejb.client.LocalInitialContextFactory -Djava.naming.factory.url.pkgs=org.apache.naming.factory.XXX or something

Re: Getting serializable exceptions while running stateful session bean.

2008-04-03 Thread David Blevins
remove() { System.out.println(remove()); } } ___ Thanks Phani B Madgula David Blevins wrote: This issue was fixed in the forthcoming OpenEJB 3.0 final, which will be included in Geronimo 2.1.1. In the meantime you can

Re: java.lang.NoSuchMethodError: org.apache.openejb.jee.ContainerTransaction

2008-04-03 Thread David Blevins
Hi Karsten, I just ran the examples/testing-transactions example against a clean repo with the 3.0-SNAPSHOT jars and didn't get this error. It might be maven didn't download everything and there are still old jars in your repo. I'd try deleting the openejb section of your repo and

Re: DataSource Look up using Tomcat

2008-04-04 Thread David Blevins
On Apr 3, 2008, at 11:47 PM, sujith k wrote: In our development environment currently we are using mokeEJB and we are planning to switch to OpenEJB. As I am new to OpenEJB and I have some doubts regarding the OpenEJB. 1) In my openejb.xml I have given the resource as Resource

Re: Getting serializable exceptions while running stateful session bean.

2008-04-04 Thread David Blevins
.server.ServiceAccessController.service(ServiceAccessController.java: 55) at org.apache.openejb.server.ServiceDaemon$1.run(ServiceDaemon.java: 118) at java.lang.Thread.run(Thread.java:803) __ David Blevins wrote: Hmm, that should definitely work. Can you post

Re: Error using Axis2 as a SAAJ provider

2008-04-25 Thread David Blevins
The primary purpose of that switching logic is to support Axis2 instead of CXF, but at current time only the CXF support works and is shipped. You're definitely right, with CXF under the cover the Axis2 saaj impl won't work. -David On Apr 24, 2008, at 10:02 AM, jfjames wrote: I

Re: DataSource Injection using Eclipse 3.3.2, Tomcat 6 with embedded OpenEJB (EJB3) To Mysql 5

2008-04-27 Thread David Blevins
: Name server.xml is not bound in this Context env/web.xml/resource-ref=[ResourceBean ContextResourceRef] HandleDelegate=ERROR: No HandleDelegate registered with the OpenEJB system ORB=ERROR: No ORB registered with the OpenEJB system On Fri, Apr 25, 2008 at 9:10 PM, David Blevins [EMAIL

Re: OpenEJB 3.0 - Tomcat deployment error ...

2008-05-02 Thread David Blevins
Somehow I missed your first email. But I'm glad you got the issue resolved. If you have any details on the classpath issue, that'd be great. Might be something we need to watch for or perhaps even check for in code. -David On May 2, 2008, at 8:38 AM, ManojS wrote: It was a

Re: Service locator problem while EJB lookup ...

2008-05-03 Thread David Blevins
On May 2, 2008, at 10:19 PM, ManojS wrote: Hi, I have an issue while looking up an EJB using service locator pattern. I have a ServiceLocator class which is being used everywhere in my code to lookup any EJB. But now when I use openEJB (version 3.0) it is throwing a

Re: Tomcat DataSource Configuration

2008-05-03 Thread David Blevins
On May 3, 2008, at 10:59 AM, JimOR wrote: I'm new to OpenEJB, so pardon my ignorance... I am able to inject a DataSource into an EJB3.0 bean using @Resource(name=[id defined in TOMCAT_HOME/conf/openejb.xml]). I would prefer to deploy my driver and openejb configuration per webapp, so I

Re: Tomcat webapp Configuration

2008-05-03 Thread David Blevins
On May 3, 2008, at 12:41 PM, JimOR wrote: 1)I would prefer to deploy my driver and openejb configuration in my ejb jar As noted in the other email, we can add support for that. 2)When my war contains jsf and/or IceFaces, openejb throws the following(edited for brevity): ERROR - Unable to

At JavaOne?

2008-05-04 Thread David Blevins
I'll be floating around the JavaOne conference this week. If anyone would like to ask OpenEJB questions in person, I'd be happy to meet you. I sent a similar email out last year for JavaOne and met some really nice people. One of them was Dario Laverde who ended up writing a couple

Re: No Maven2 Best Practices?

2008-05-14 Thread David Blevins
On May 13, 2008, at 11:21 PM, Gegas wrote: Thank you David! I remebered you could also put a hibernate.properties file with your Hibernate specific properties and put it in your classpath as well. Dunno why I didn't think of this before... The production hibernate.properties will reside

Re: problem with hibernate persistence provider

2008-05-14 Thread David Blevins
On May 14, 2008, at 5:46 AM, rolber wrote: Caused by: org.apache.openejb.OpenEJBException: java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider: org.hibernate.ejb.HibernatePersistence cannot be cast to

Re: OpenEJB Unit Test ERROR - java agent not installed.

2008-05-22 Thread David Blevins
On May 22, 2008, at 3:38 PM, fmchale wrote: Hello, Our team is using geronimo for our application server so we thought it best to use openejb to do unit testing. I have been attempting to set it up using eclipse. I have followed the examples and created a simple test case for an EJB.

Re: IllegalStateException: Cannot log transactions

2008-05-22 Thread David Blevins
On May 21, 2008, at 6:04 AM, Martin Vysny wrote: On Wed, 2008-05-21 at 14:18 +0530, Manu George wrote: This looks like the XAResource that is being passed to the geronimo transaction manager is not a named XA Resource. So transactions will not be logged in this case. I think you can open a

Re: Collapsed EARs with Geronimo/Jetty and MDBs?

2008-05-28 Thread David Blevins
On May 27, 2008, at 10:15 PM, ipsi wrote: I would like to be able to package what is currently an EAR, WAR and JAR (plus other stuff) into a single WAR, and get rid of a number of classloader problems I'm currently having. I think the procedure is essentially just put my MDBs into

Re: Jaxb 2.1 API

2008-06-03 Thread David Blevins
On Jun 3, 2008, at 2:40 PM, Jonathan Gallimore wrote: Hi, I managed to set up a test which reproduced this. I found a couple of ways around the problem: Thanks, Jonathan! One way was to use JDK 1.6 (I could only reproduce your error with 1.5, but maybe that's just my machine...) Also

Re: loadbalancing failover of stateless beans

2008-06-03 Thread David Blevins
On Jun 3, 2008, at 3:02 AM, [EMAIL PROTECTED] wrote: Hi, Can we expect an implementation in the next delivery. It is an essential feature for us. Hi Youcef, Are you sure you mean failover for stateless beans and not stateful? Getting failover for stateless is pretty trivial and we

Re: loadbalancing failover of stateless beans

2008-06-04 Thread David Blevins
On Jun 3, 2008, at 10:36 PM, Youcef HILEM wrote: Hi David, I confirm that my request relates only to stateless beans and not to stateful beans. Most of our business services are available for both Web and Swing applications. The management of state is supported by these applications.

Re: Can we add a datasource as resource at runtime ?

2008-06-04 Thread David Blevins
On Jun 4, 2008, at 7:58 AM, ManojS wrote: David Blevins wrote: If you don't mind using OpenEJB apis directly, you could create an ejb that does this: import org.apache.openejb.assembler.classic.Assembler; import

Re: Using OpenEJB Security for JAAS LoginModule

2008-06-06 Thread David Blevins
are as they need to be. -David On Jun 6, 2008, at 1:24 AM, [EMAIL PROTECTED] wrote: Hi All, we use embedded openejb to test our JavaEE-5 (Geronimo App.server) Application. With the great help of David Blevins the JUNIT-Tests can invoke our session beans and even Transaction Handling is working fine

Re: DataSource configuration for production

2008-06-06 Thread David Blevins
On Jun 6, 2008, at 9:10 AM, jfjames wrote: I'm doing some tests before putting OpenEJB in production and I'm facing a problem with the DataSource configuration. My environment is : 1/ Application deployed on Tomcat 6.0.16 + Open EJB 3.0, 2/ Database : MySQL 4.0.1 + Mysql Connector 5.0.4 3/

Re: DataSource configuration for production

2008-06-09 Thread David Blevins
On Jun 9, 2008, at 3:22 AM, jfjames wrote: We're going to spend some times this afternoon investigating what really happens in DBCP and COMMON-POOLS. BTW do you know how we can access the JAVA source of DBCP and COMMON-POOLS embedded in OPENJB 3.0 ? I'll see if I can give your scenario a

Re: Antwort: Re: Using OpenEJB Security for JAAS LoginModule

2008-06-09 Thread David Blevins
if that is what you're trying to do and I'll see if I can get an example working. -David cu Josef David Blevins [EMAIL PROTECTED] 06.06.2008 23:06 Bitte antworten an users@openejb.apache.org An users@openejb.apache.org Kopie Thema Re: Using OpenEJB Security for JAAS LoginModule

Re: DataSource configuration for production

2008-06-10 Thread David Blevins
On Jun 10, 2008, at 12:49 AM, jfjames wrote: Sorry David, but the MAVEN source jar is empty ... Looks like the maven-shade-plugin needs some bug fixing :) Oh well. The two svn commands I post should give all the required source. -David

Re: How to embed a server into openejb standard alone server

2008-06-10 Thread David Blevins
On Jun 10, 2008, at 8:50 PM, xianzheng wrote: Hi all, I'm new to J2EE and OpenEJB. Just wondering, is there a way to embed an application server which is written in JAVA in openejb? I guess, I'll have to write a container to wrap it around? If so, is there a guide to write such thing? As my

Re: Help with OpenEJB3 and Spring IoC

2008-06-11 Thread David Blevins
On Jun 9, 2008, at 3:53 PM, Jon Carrera wrote: I went for the naughty option for printing out the classpath and it worked from within the test case, but didn't work with the bean factory. Apparently the problem is in org.springframework.test.jpa.AbstractJpaTests which internally uses

Re: Eclipse Multiple Projects and Missing persistence.xml

2008-06-11 Thread David Blevins
we treat every module we find as a separate application which is really not the right technique for some people. -David On Jun 10, 2008, at 1:30 PM, chadws wrote: David Blevins wrote: On Mar 30, 2008, at 8:29 PM, Chad and Doria Skinner wrote: I have a project I am working on and we

Re: How to embed a server into openejb standard alone server

2008-06-12 Thread David Blevins
/repos/asf/openejb/tags/openejb-3.0/server/openejb-ejbd/src/main/java/org/apache/openejb/server/ejbd/EjbRequestHandler.java David Blevins wrote: On Jun 10, 2008, at 8:50 PM, xianzheng wrote: Hi all, I'm new to J2EE and OpenEJB. Just wondering, is there a way to embed an application server

Re: DataSource configuration for production

2008-06-12 Thread David Blevins
On Jun 11, 2008, at 4:44 AM, jfjames wrote: We're back ... It seems we’ve identified the cause of the problem. It is located in DBCP 1.3. In fact, the isClosed method of the DelegatingConnection class doesn’t really close the underlying JDBC connection : * when called from the

Re: DataSource configuration for production

2008-06-12 Thread David Blevins
: https://issues.apache.org/jira/browse/DBCP-269. It would be very nice to include this patch in OpenEJB 3.0.1. -JF David Blevins wrote: On Jun 11, 2008, at 4:44 AM, jfjames wrote: We're back ... It seems we’ve identified the cause of the problem. It is located in DBCP 1.3. In fact

Re: javax.naming.OperationNotSupportedException with Hibernate 3 and Openejb 3.0

2008-06-16 Thread David Blevins
Hmm, it seems that Hibernate is trying to bind something into JNDI which isn't allowed. JNDI is read-only in Java EE land. I looked through the code to see if there were any hints and it seems like the binding of things into JNDI is optional and can be shut off. Looks as though if you

Re: Openejb 3.0 with Hibernate - javax.naming.OperationNotSupportedException problem ...

2008-06-16 Thread David Blevins
Hmm, it seems that Hibernate is trying to bind something into JNDI which isn't allowed. JNDI is read-only in Java EE land. I looked through the code to see if there were any hints and it seems like the binding of things into JNDI is optional and can be shut off. Looks as though if you

Re: OpenEJB local interfaces JNDI security

2008-06-17 Thread David Blevins
On Jun 17, 2008, at 12:37 AM, Martin Vysny wrote: Probably the client identity should be removed from ThreadLocal on Context.close(), or J2SE security (doPrivileged) could be used to hold the principal. Should I open a bug? Maybe not a bug, but definitely file a JIRA and mark it as

Re: Eclipse Multiple Projects and Missing persistence.xml

2008-06-18 Thread David Blevins
On Jun 11, 2008, at 5:57 PM, David Blevins wrote: The crux of the issue is that perfectly valid approach to testing is to treat the entire classpath and all modules in it as essentially one big ear, the things like persistence units declared in other jars will still be considered part

Re: LocalInitialContextFactory - DataSource JNDI

2008-06-18 Thread David Blevins
On Jun 18, 2008, at 7:34 AM, Jaime Geovane Marcondes wrote: Hello! OpenEJB is amazing to boost the development of EJB3.0. Quite a lot of effort goes into making things as easy as possible, so we definitely appreciate the positive feedback! Thank you! I tried to configure

Re: Help with OpenEJB3 and Spring IoC

2008-06-18 Thread David Blevins
Jon, this is great! Very interesting technique on getting the OpenEJB TransactionManager plugged into Spring. I suppose that is one of the tweaks that are required for anything that's a subclass of AbstractTransactionalSpringContextTests? Hopefully I can get the doc updated in the next

Re: DataSource configuration for production

2008-06-20 Thread David Blevins
On Jun 19, 2008, at 9:14 AM, jfjames wrote: We've run our tests and check your fix. All is OK, there is no more connection leaks without or without evictor. Thank you very much. Great! We'll roll up another DBCP binary for the upcoming 3.0.1 release. -David jfjames wrote: Thank you

Re: Same bean injected into different fields

2008-06-21 Thread David Blevins
Added support for this: http://issues.apache.org/jira/browse/OPENEJB-828 -David On Apr 10, 2008, at 1:48 PM, David Blevins wrote: On Apr 10, 2008, at 1:28 PM, Karsten Ohme wrote: I have overseen that I used name instead of beanName. This was the reason. I've been poking into this one

Re: @WebService - LocalInitialContextFactory

2008-06-24 Thread David Blevins
-3.1-20080625.051933-3.zip As well if you're doing testing with maven2, you can simply update your openejb version to 3.1-SNAPSHOT. Let me know if this works for you and if you see any kind of performance boost in test time. -David David Blevins wrote: On Jun 23, 2008, at 6:29 AM

Re: IllegalStateException: Cannot log transactions

2008-06-24 Thread David Blevins
On Jun 24, 2008, at 9:27 AM, Martin Vysny wrote: On Fri, 2008-06-20 at 20:11 -0700, David Blevins wrote: On May 23, 2008, at 7:11 AM, Martin Vysny wrote: On Thu, 2008-05-22 at 22:31 -0700, David Blevins wrote: On May 21, 2008, at 6:04 AM, Martin Vysny wrote: On Wed, 2008-05-21 at 14:18

  1   2   3   4   5   6   7   8   >