Re: SOME QUESTION

2007-06-11 Thread Mohammad Nour El-Din

Hi Quang...

I think it is better to send this question to the user list of JRun :). Here
we try to help people using OpenEJB. If you have problems building the
examples we can help you in that. Did you try to run the examples with
OpenEJB, I think you will find OpenEJB3.0 very interesting to use and
develop for :).

On 6/10/07, quang thu <[EMAIL PROTECTED]> wrote:


you can give some guides.how you run your examples in JRun by Deploy and
run HelloWorld in DOS.
Thank to you





Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
news, photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC





--
Thanks
- Mohammad Nour


Re: Running openejb.bat

2007-08-26 Thread Mohammad Nour El-Din
Hi denishulik...

  Thank you for using OpenEJB and sending your questions :), please let me
know the version you are using ? Did you try OpenEJB 3.0 this is our latest
version which supports both EJB 2.1 and EJB 3.0 with its new fantastic
features, if you are not I encourage you to do so, and if you don't like to
grape the source and build the whole thing locally I can send you a binary
distribution, just let me know what do you need :) .

On 8/26/07, deniskulik <[EMAIL PROTECTED]> wrote:
>
>
> Hi everyone,
>
> I have been trying to kick off the container on Windows XP (SP2) using the
> default openejb.bat and discovered that it doesn't work. To get things
> working the batch file needs to be modified as follows:
>
> @echo off
>
> SETLOCAL
>
> SET COMMAND=%~f0
> SET OPENEJB_HOME=%COMMAND:~0,-16%
>
> java %JAVA_OPTS% -jar "%OPENEJB_HOME%\lib\openejb-core-1.0.jar" %*
>
> Note that this configuration allows you to run the file from directories
> which have spaces in their names.
>
> PS:
> Apologies if I post this message in the wrong place.
> --
> View this message in context:
> http://www.nabble.com/Running-openejb.bat-tf4330787.html#a12333956
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>


-- 
Thanks
- Mohammad Nour


Re: Running openejb.bat

2007-08-26 Thread Mohammad Nour El-Din
I will give the src which is the best way to get the latest bits of OEJB 3.0,
but u need to have Maven 2.0 to build the src, here you are
http://svn.apache.org/repos/asf/openejb/trunk/openejb3 , to know how to
build the src please visit our wiki
http://cwiki.apache.org/confluence/display/OPENEJB/Index, and if you have
any other questions or ideas to make OpenEJB better please share it with us
:) .


On 8/26/07, deniskulik <[EMAIL PROTECTED]> wrote:
>
>
> Hi Mohammad,
>
> I am using OpenEJB 1.0 binary, which I got from the download page (which I
> assumed was the latest version). If you could point me at the right place
> where I could find the latest final built of OpenEJB 3.0 that would be
> smashing (either binary or source, I dont mind).
>
> Ta!
>
>
> --
> View this message in context:
> http://www.nabble.com/Running-openejb.bat-tf4330787.html#a12334473
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>


-- 
Thanks
- Mohammad Nour


Re: What new in OpenEjb 3.0?

2007-09-05 Thread Mohammad Nour El-Din
Hi Ashish...

  Well this is a questions which needs a not short answer, but in General :

  1- Dependency Injection using annotations and\or Deployment Descriptors .
  2- New persistence model .
  3- Simplified programming model using annotations and\or Deployment
Descriptors .
  4- Support of JAX-WS Web Services .

This is what I can remember, but for more info you have to look into the EJB
3.0 specification
http://www.jcp.org/en/jsr/detail?id=220

On 9/5/07, Ashish Jain <[EMAIL PROTECTED]> wrote:
>
> Hi All!!
>
> I am new to OpenEjb. Can someone tell me what is new in OpenEjb
> 3.0compared to the previous version.
>
> Thanks in advance
>
> Regards
> Ashish
>



-- 
Thanks
- Mohammad Nour


Re: What new in OpenEjb 3.0?

2007-09-06 Thread Mohammad Nour El-Din
I can not aswer about the part related to EJB 3.0 new persistence model and
JPA, but regarding other features listed in former mails, the productivity
of developers will increase, and the developer will concentrate more on the
pure business loginc, as you don't have to provide Remote\LocalHome and
Remote\LocalObject interfaces anymore, and even you don't have to use
deployment descriptors, which makes EJB developement more easy than before .

On 9/6/07, Ashish Jain <[EMAIL PROTECTED]> wrote:
>
> Hi!!
>
>Thanks a lot for the quick response. I also want to know how these
> changes leads to  performance improvement.
>
> Thanks and Regards
> Ashish
>
> On 9/6/07, David Blevins <[EMAIL PROTECTED]> wrote:
> >
> > On Sep 5, 2007, at 5:17 PM, David Blevins wrote:
> >
> > > http://cwiki.apache.org/OPENEJB/new-in-openejb-30.html
> > >
> > > Still updating, should have it done in another hour or so.
> >
> > More updated, still more to go :)
> >
> > -David
> >
> >
>



-- 
Thanks
- Mohammad Nour


Re: What new in OpenEjb 3.0?

2007-09-06 Thread Mohammad Nour El-Din
Oops, Sorry I thought he was asking about EJB 3.0 in general .

On 9/6/07, David Blevins <[EMAIL PROTECTED] > wrote:
>
> 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...
> >
> >   Well this is a questions which needs a not short answer, but in
> > General :
> >
> >   1- Dependency Injection using annotations and\or Deployment
> > Descriptors .
> >   2- New persistence model .
> >   3- Simplified programming model using annotations and\or Deployment
> > Descriptors .
> >   4- Support of JAX-WS Web Services .
> >
> > This is what I can remember, but for more info you have to look
> > into the EJB
> > 3.0 specification
> > http://www.jcp.org/en/jsr/detail?id=220
> >
> > On 9/5/07, Ashish Jain < [EMAIL PROTECTED]> wrote:
> >>
> >> Hi All!!
> >>
> >> I am new to OpenEjb. Can someone tell me what is new in OpenEjb
> >> 3.0compared to the previous version.
> >>
> >> Thanks in advance
> >>
> >> Regards
> >> Ashish
> >>
> >
> >
> >
> > --
> > Thanks
> > - Mohammad Nour
>
>


-- 
Thanks
- Mohammad Nour


Re: Exception: NullPointerException

2007-10-10 Thread Mohammad Nour El-Din
Hi Martin...

Thanks for your comments and your patch I will review when I have time and
apply it if applicable. Just as a friendly note, these kinds of notes it is
better to be sent on the development list so it can get better noticed :). I
hope you wont stop finding issues and fixing them for OpenEJB :D .

On 10/10/07, Martin Vysny <[EMAIL PROTECTED]> wrote:
>
>
> On Wed, 2007-10-10 at 10:04 +0200, Martin Vysny wrote:
> > On Wed, 2007-10-10 at 09:05 +0200, Martin Vysny wrote:
> > > Hi guys,
> > >   I tried to deploy an EJB2.1 project in OpenEJB, (btw EJB2.0descriptor
> > > is rejected by OpenEJB: validation error - the
> > >  element in  is rejected),
> > > but I get this error:
> > >
> > > ERROR - FATAL ERROR: Unknown error in Assembler.  Please send the
> > > following stack trace and this message to [EMAIL PROTECTED] :
> > >  java.lang.NullPointerException
> > > at java.lang.String.compareTo(String.java:998)
> > > at java.lang.String.compareTo(String.java:90)
> > > at java.util.TreeMap.compare(TreeMap.java:1093)
> > > at java.util.TreeMap.getEntry(TreeMap.java:347)
> > > at java.util.TreeMap.get(TreeMap.java:265)
> > > at
> > > org.apache.openejb.config.JndiEncInfoBuilder.initJndiReferences(
> JndiEncInfoBuilder.java:84)
> > > at
> > > org.apache.openejb.config.ConfigurationFactory.configureApplication(
> ConfigurationFactory.java:397)
> > > at
> > > org.apache.openejb.config.ConfigurationFactory.configureApplication(
> ConfigurationFactory.java:285)
> > > at
> > > org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration
> (ConfigurationFactory.java:268)
> > > at
> > > org.apache.openejb.assembler.classic.Assembler.build(Assembler.java
> :206)
> > > at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:149)
> > > at org.apache.openejb.OpenEJB.init(OpenEJB.java:293)
> > > at org.apache.openejb.OpenEJB.init(OpenEJB.java:272)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> > > at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > at
> > > org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java
> :36)
> > > at
> > > org.apache.openejb.client.LocalInitialContextFactory.init(
> LocalInitialContextFactory.java:59)
> > > at
> > > org.apache.openejb.client.LocalInitialContextFactory.getInitialContext
> (LocalInitialContextFactory.java:45)
> > > at
> > > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java
> :667)
> > > at
> > > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
> > > at javax.naming.InitialContext.init(InitialContext.java:223)
> > > at javax.naming.InitialContext.(InitialContext.java:197)
> > > at org.acme.FriendlyPersonTest.setUp(FriendlyPersonTest.java:41)
> > > at junit.framework.TestCase.runBare(TestCase.java:128)
> > > at junit.framework.TestResult$1.protect(TestResult.java:110)
> > > at junit.framework.TestResult.runProtected(TestResult.java:128)
> > > at junit.framework.TestResult.run(TestResult.java:113)
> > > at junit.framework.TestCase.run(TestCase.java:120)
> > > at junit.framework.TestSuite.runTest(TestSuite.java:228)
> > > at junit.framework.TestSuite.run(TestSuite.java:223)
> > > at
> > > org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(
> JUnit3TestReference.java:128)
> > > at
> > > org.eclipse.jdt.internal.junit.runner.TestExecution.run(
> TestExecution.java:38)
> > > at
> > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> RemoteTestRunner.java:460)
> > > at
> > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> RemoteTestRunner.java:673)
> > > at
> > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
> RemoteTestRunner.java:386)
> > > at
> > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
> RemoteTestRunner.java:196)
> > >
> > > FATAL - OpenEJB has encountered a fatal error and cannot be started:
> > > Assembler failed to build the container system.
> > > org.apache.openejb.OpenEJBException: java.lang.NullPointerException:
> > > null
> > > at
> > > org.apache.openejb.assembler.classic.Assembler.build(Assembler.java
> :220)
> > > at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:149)
> > > at org.apache.openejb.OpenEJB.init(OpenEJB.java:293)
> > > at org.apache.openejb.OpenEJB.init(OpenEJB.java:272)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at
> > > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> > > at
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > 

Re: Exception: NullPointerException

2007-10-11 Thread Mohammad Nour El-Din
On 10/11/07, Martin Vysny <[EMAIL PROTECTED]> wrote:
>
>
> On Wed, 2007-10-10 at 22:28 +0200, Mohammad Nour El-Din wrote:
> > Hi Martin...
> >
> > Thanks for your comments and your patch I will review when I have time
> and
> > apply it if applicable. Just as a friendly note, these kinds of notes it
> is
> > better to be sent on the development list so it can get better noticed
> :). I
> > hope you wont stop finding issues and fixing them for OpenEJB :D .
> >
>
> Hello Mohammad,
> thanks for your note, I will do so next time :) And thanks for your hard
> work on OpenEJB, the project looks great (I especially like the
> infrastructure: maven2, unit tests, you guys better be proud of
> yourselves :) We intend to use OpenEJB for developing/debugging JEE apps
> quickly in Eclipse, so you'll probably have to bear with me for a
> while :) keep up the good work!
> Martin


Don't worry about that it is our pleasure to help others to use OpenEJB and
make it better :)

> On 10/10/07, Martin Vysny <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > On Wed, 2007-10-10 at 10:04 +0200, Martin Vysny wrote:
> > > > On Wed, 2007-10-10 at 09:05 +0200, Martin Vysny wrote:
> > > > > Hi guys,
> > > > >   I tried to deploy an EJB2.1 project in OpenEJB, (btw
> EJB2.0descriptor
> > > > > is rejected by OpenEJB: validation error - the
> > > > >  element in  is
> rejected),
> > > > > but I get this error:
> > > > >
> > > > > ERROR - FATAL ERROR: Unknown error in Assembler.  Please send the
> > > > > following stack trace and this message to [EMAIL PROTECTED] :
> > > > >  java.lang.NullPointerException
> > > > > at java.lang.String.compareTo(String.java:998)
> > > > > at java.lang.String.compareTo(String.java:90)
> > > > > at java.util.TreeMap.compare(TreeMap.java:1093)
> > > > > at java.util.TreeMap.getEntry(TreeMap.java:347)
> > > > > at java.util.TreeMap.get(TreeMap.java:265)
> > > > > at
> > > > > org.apache.openejb.config.JndiEncInfoBuilder.initJndiReferences(
> > > JndiEncInfoBuilder.java:84)
> > > > > at
> > > > >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(
> > > ConfigurationFactory.java:397)
> > > > > at
> > > > >
> org.apache.openejb.config.ConfigurationFactory.configureApplication(
> > > ConfigurationFactory.java:285)
> > > > > at
> > > > >
> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration
> > > (ConfigurationFactory.java:268)
> > > > > at
> > > > > org.apache.openejb.assembler.classic.Assembler.build(
> Assembler.java
> > > :206)
> > > > > at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java
> :149)
> > > > > at org.apache.openejb.OpenEJB.init(OpenEJB.java:293)
> > > > > at org.apache.openejb.OpenEJB.init(OpenEJB.java:272)
> > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > > at
> > > > > sun.reflect.NativeMethodAccessorImpl.invoke(
> > > NativeMethodAccessorImpl.java:39)
> > > > > at
> > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > DelegatingMethodAccessorImpl.java:25)
> > > > > at java.lang.reflect.Method.invoke(Method.java:585)
> > > > > at
> > > > > org.apache.openejb.loader.OpenEJBInstance.init(
> OpenEJBInstance.java
> > > :36)
> > > > > at
> > > > > org.apache.openejb.client.LocalInitialContextFactory.init(
> > > LocalInitialContextFactory.java:59)
> > > > > at
> > > > >
> org.apache.openejb.client.LocalInitialContextFactory.getInitialContext
> > > (LocalInitialContextFactory.java:45)
> > > > > at
> > > > > javax.naming.spi.NamingManager.getInitialContext(
> NamingManager.java
> > > :667)
> > > > > at
> > > > > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java
> :247)
> > > > > at javax.naming.InitialContext.init(InitialContext.java:223)
> > > > > at javax.naming.InitialContext.(InitialContext.java:197)
> > > > > at org.acme.FriendlyPersonTest.setUp(FriendlyPersonTest.java
> :41)
> > > > > at jun

Re: Where do I get javax.persistence package?

2007-10-18 Thread Mohammad Nour El-Din
Try including the persistence-api-.jar found in the ${openejb.home}/lib
directory .

On 10/18/07, satsuma <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I have just started EJB programming and I ran into a problem, when trying
> to
> implement a simple stateless session bean that accesses database. I have
> been following the instruction in the openEJB documentation page,
> http://openejb.apache.org/databases.html
>
> When I try to compile my class, I get an error that states "package
> javax.persistence.* does not exist" and because of this I can not use
> annotations such as @Resource or @PersistenceContext. The @Stateless
> annotation on the other hand, works as supposed(I made the hello world
> tutorial from the documentation).
>
> I have added geronimo-ejb_3.0_spec-1.0.jar and
> openejb-client-3.0-beta-1.jar
> to my classpath, do I need to add something more?
>
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/Where-do-I-get-javax.persistence-package--tf4648542.html#a13279676
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>


-- 
Thanks
- Mohammad Nour


Re: Where do I get javax.persistence package?

2007-10-27 Thread Mohammad Nour El-Din
oBean implements Hello
> >>>>> {
> >>>>>   public String sayHello()
> >>>>>   {
> >>>>> return "Hello from EJB world!";
> >>>>>   }
> >>>>> }
> >>>>>
> >>>>> There's no database operations yet, because I'm first trying to
> >>>>> get it
> >>>>> through the compiler with the Resource annotation. The
> >>>>> PersistenceContext
> >>>>> annotation does not cause any errors.
> >>>>>
> >>>>> My classpath is
> >>>>>
> >>>>> .:/opt/apache-tomcat-6.0.10/lib/servlet-api.jar:
> >>>>> /opt/apache-tomcat-6.0.10/lib/jsp-api.jar:
> >>>>> /usr/share/java/postgresql-jdbc3-8.1.jar:/opt/junit/junit-4.4.jar:
> >>>>> /opt/openejb-3.0-beta-1/lib/geronimo-ejb_3.0_spec-1.0.jar:
> >>>>> /opt/openejb-3.0-beta-1/lib/openejb-client-3.0-beta-1.jar:
> >>>>> /opt/openejb-3.0-beta-1/lib/geronimo-jpa_3.0_spec-1.1.jar
> >>>>>
> >>>>> Is there something missing?
> >>>>>
> >>>>> Java is version 1.5.0_08.
> >>>>>
> >>>>>
> >>>>> satsuma wrote:
> >>>>>>
> >>>>>> Thanks Dario, that does it!
> >>>>>>
> >>>>>> Allthough I have no problem with the compilation part any more,
> >>>>>> but I
> >>>>>> still can't get the database connection to work. I'll make a
> >>>>>> thread for
> >>>>>> the new question, to keep this thread under the current subject.
> >>>>>>
> >>>>>>
> >>>>>> Dario Laverde wrote:
> >>>>>>>
> >>>>>>> Hello Satsuma,
> >>>>>>>
> >>>>>>> Add the following 2 jars to your classpath:
> >>>>>>>
> >>>>>>> geronimo-ejb_3.0_spec-1.0.jar
> >>>>>>> geronimo-jpa_3.0_spec-1.1.jar
> >>>>>>>
> >>>>>>> For an example (using Tomcat) check my blog entry at:
> >>>>>>> http://javanotebook.com/2007/09/28/openejb_3_and_tomcat_6.html
> >>>>>>>
> >>>>>>> -Dario
> >>>>>>>
> >>>>>>>> Thank you Mohammad for your reply.
> >>>>>>>>
> >>>>>>>> I can not find such a jar file from the lib directory. The only
> >>>>>>>> ones
> >>>>>>>> close
> >>>>>>>> to that(containing 'persistence') are openjpa-
> >>>>>>>> persistence-1.0.0.jar and
> >>>>>>>> openjpa-persistence-jdbc-1.0.0.jar, so I added both of those
> >>>>>>>> to my
> >>>>>>>> classpath, but that didn't solve the problem. Any more tips?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> Mohammad Nour El-Din wrote:
> >>>>>>>>>
> >>>>>>>>> Try including the persistence-api-.jar found in the
> >>>>>>>>> ${openejb.home}/lib
> >>>>>>>>> directory .
> >>>>>>>>>
> >>>>>>>>> On 10/18/07, satsuma <[EMAIL PROTECTED]> wrote:
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> Hi,
> >>>>>>>>>>
> >>>>>>>>>> I have just started EJB programming and I ran into a problem,
> >>>>>>>>>> when
> >>>>>>>>>> trying
> >>>>>>>>>> to
> >>>>>>>>>> implement a simple stateless session bean that accesses
> >>>>>>>>>> database. I
> >>>>>>>>>> have
> >>>>>>>>>> been following the instruction in the openEJB documentation
> >>>>>>>>>> page,
> >>>>>>>>>> http://openejb.apache.org/databases.html
> >>>>>>>>>>
> >>>>>>>>>> When I try to compile my class, I get an error that states
> >>>>>>>>>> "package
> >>>>>>>>>> javax.persistence.* does not exist" and because of this I can
> >>>>>>>>>> not use
> >>>>>>>>>> annotations such as @Resource or @PersistenceContext. The
> >>>>>>>>>> @Stateless
> >>>>>>>>>> annotation on the other hand, works as supposed(I made the
> >>>>>>>>>> hello world
> >>>>>>>>>> tutorial from the documentation).
> >>>>>>>>>>
> >>>>>>>>>> I have added geronimo-ejb_3.0_spec-1.0.jar and
> >>>>>>>>>> openejb-client-3.0-beta-1.jar
> >>>>>>>>>> to my classpath, do I need to add something more?
> >>>>>>>>>>
> >>>>>>>>>> Thanks.
> >>>>>>>>>> --
> >>>>>>>>>> View this message in context:
> >>>>>>>>>> http://www.nabble.com/Where-do-I-get-javax.persistence-
> >>>>>>>>>> package--tf4648542.html#a13279676
> >>>>>>>>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>> Thanks
> >>>>>>>>> - Mohammad Nour
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> View this message in context:
> >>>>>>>> http://www.nabble.com/Where-do-I-get-javax.persistence-package--
> >>>>>>>> tf4648542.html#a13281604
> >>>>>>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> --
> >>>>> View this message in context: http://www.nabble.com/Where-do-I-get-
> >>>>> javax.persistence-package--tf4648542.html#a13346735
> >>>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>> --
> >>> View this message in context: http://www.nabble.com/Where-do-I-get-
> >>> javax.persistence-package--tf4648542.html#a13360830
> >>> Sent from the OpenEJB User mailing list archive at Nabble.com.
> >>>
> >>>
> >>
> >>
> >> --
> >> Karan Singh Malhi
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Where-do-I-get-javax.persistence-package--tf4648542.html#a13370984
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>


-- 
Thanks
- Mohammad Nour


Re: Qeury a boolean column?(using postgresql)

2007-11-17 Thread Mohammad Nour El-Din
Hi Dycharles

  I skimmed the tutorial and seems that it uses NetBeans IDE and Sun Java
System Application Server which is not OpenEJB and it is not using EJB
neither, nit it uses JSE and the JPA APIs and annotations, is that the
configuration u use or u try to apply the concepts explained in the tutorial
using OpenEJB ???

On Nov 16, 2007 6:25 PM, dycharles <[EMAIL PROTECTED]> wrote:

>
> hello,
>
>   thanks for the reply...
>
>   I am new to this ejb or persistence Please help me understand.
> thanks.
>
>   Now i just followed this tutorial from netbeans
> (http://www.netbeans.org/kb/55/persistence-j2se.html) because i'm using
> the
> netbeansIDE, then that is my persistence and ejb used... i don't know what
> version i'm using in persistence and in ejb i don't know also if it is
> openEJB or ejb alone, what is the difference between the two?
>
>   Regarding with my posrgresql version i used the recent version. i know
> this will support the boolean data type. in my schema in postgresql, it is
> really simple i create the boolean column with boolean data type and
> primary
> key... then thats it. And also in java i used the java6.
>
>   So, i suspect my mistake is in the persistence and ejb used...
>
> thanks,
> dycharles
>
>
> Dain Sundstrom wrote:
> >
> > Hi,
> >
> > I'm not sure why this isn't working, so I'm gonna have to attempt to
> > reproduce this problem, but I'm going to need a bit more information.
> >
> > Are you using CMP or JPA?
> > Are you using an existing database TABLE or generating one?  If
> > existing, can you share the schema for the table?
> > Can you share your CMP or JPA bean?
> > What version of Postgresql are you using? driver version?
> > What version of OpenEJB?
> >
> > In the mean time, I'll try to hack something up.
> >
> > BTW, if you're not on Java 6, give it a try.  We use OpenJPA for
> > persistence of CMP and JPA beans, and due to the new instrumentation
> > apis in Java 6, OpenJPA works a bit better.
> >
> > -dain
> >
> > On Nov 14, 2007, at 4:50 PM, dycharles wrote:
> >
> >>
> >> hello,
> >>
> >>i have a database in postgresql that have a column boolean, then
> >> when i
> >> create a query in ejb like this(SELECT e.letsaythisisboolean FROM
> >> sample e),
> >> now problem is that when i query the database, it will return all
> >> the false
> >> value in the column boolean, and the true value will not return...
> >> How can i
> >> make the true value appear in my query result? Any suggestion or
> >> help...
> >>
> >> thanks,
> >> dychalres
> >> --
> >> View this message in context: http://www.nabble.com/Qeury-a-boolean-
> >> column-%28using-postgresql%29-tf4808272.html#a13757336
> >> Sent from the OpenEJB User mailing list archive at Nabble.com.
> >>
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Qeury-a-boolean-column-%28using-postgresql%29-tf4808272.html#a13796483
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>


-- 
Thanks
- Mohammad Nour


Re: OpenEJB Tomcat Configuration

2007-11-17 Thread Mohammad Nour El-Din
Dear Hani...

  First thanks for using and trying OpenEJB :) , I advise you to read the
instructions explained in here
http://cwiki.apache.org/confluence/display/OPENEJB/Tomcat and to use
OpenEJB3.0 than OpenEJB1.0 as the current main development and new features
are in OpenEJB3.0 which still also support former versions of EJB specially
EJB2.1.

On Nov 17, 2007 10:06 AM, Hani <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
>  I am using openEJB1.0, with Tomcat 4.1.24, in my developement environment
> it is working fine. When deploy my .war in tomcat, issues comming. EJBs
> are
> not binding. My questions,
> Is it needed to include the openejb.conf file any where in war or in
> tomcat?
> I am using MySQL 5.0.27 Where I specifies the connection peoperties?
>
> thanks,
>
> --Hani
>
> --
> View this message in context:
> http://www.nabble.com/OpenEJB-Tomcat-Configuration-tf4825723.html#a13806916
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>


-- 
Thanks
- Mohammad Nour


Re: OpenEJB Tomcat Configuration

2007-11-19 Thread Mohammad Nour El-Din
You are so welcome Hani. And we are looking forward towards more questions
from you ;).

On Nov 18, 2007 1:23 PM, Hani <[EMAIL PROTECTED]> wrote:

>
> Thanks Mohammad, actualy yesterday itself I have solved the issue. Now it
> is
> working fine. Expecting ur promt reply in future also.
> thanks
>
> --Hani
>
>
> Mohammad Nour El-Din wrote:
> >
> > Dear Hani...
> >
> >   First thanks for using and trying OpenEJB :) , I advise you to read
> the
> > instructions explained in here
> > http://cwiki.apache.org/confluence/display/OPENEJB/Tomcat and to use
> > OpenEJB3.0 than OpenEJB1.0 as the current main development and new
> > features
> > are in OpenEJB3.0 which still also support former versions of EJB
> > specially
> > EJB2.1.
> >
> > On Nov 17, 2007 10:06 AM, Hani <[EMAIL PROTECTED]> wrote:
> >
> >>
> >> Hi,
> >>
> >>  I am using openEJB1.0, with Tomcat 4.1.24, in my developement
> >> environment
> >> it is working fine. When deploy my .war in tomcat, issues comming. EJBs
> >> are
> >> not binding. My questions,
> >> Is it needed to include the openejb.conf file any where in war or in
> >> tomcat?
> >> I am using MySQL 5.0.27 Where I specifies the connection peoperties?
> >>
> >> thanks,
> >>
> >> --Hani
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/OpenEJB-Tomcat-Configuration-tf4825723.html#a13806916
> >> Sent from the OpenEJB User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Thanks
> > - Mohammad Nour
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/OpenEJB-Tomcat-Configuration-tf4825723.html#a13818220
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>


-- 
Thanks
- Mohammad Nour


Re: OpenEJB - Datasource lookup problem

2008-01-06 Thread Mohammad Nour El-Din
Hi ManojS...

  First thanks for using OpenEJB and thanks again for sharing your problems
with us to tyr make OpenEJB better :). I recommend to use OpenEJB 3.0 as it
is the most updated version and all of the current development is made on
it. I still can't understand from where you call this method, is it a method
in your bean ??? but from what I see in the code, you have to initialize the
naming conext first with the proper poperties to be able to use. If it is
applicable we would like to look at your code to give a more precise answer.

On Jan 6, 2008 11:51 AM, ManojS <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> I was playing with openejb and a test ejb application in my machine. My
> intention was to identify how much openejb is useful for me as an ejb
> container, so that I can recommend to use at my workplace. While I was
> trying to integrate openejb along with the application I cannot able to
> lookup the datasource connection defined in the openejb.conf file. If I
> explain in detail, my openejb.conf has the following connection
> configuration.
>
> 
>JdbcDriver   org.gjt.mysql.Driver
>JdbcUrl  jdbc:mysql://localhost:3306/test_db
>UserName root
>Password 12345
>jtamanaged   true
> 
>
> I am using the "Default Stateless Container" with ctype="STATELESS". And
> my
> ejb code (my ejbs are stateless session beans) for datasource lookup is as
> follows,
>
> public Connection getConnection () throws Exception {
>Context ctx = new InitialContext();
>Datasource ds = (Datasource) ctx.lookup( "MyDatasource" );
>return (ds!=null?ds.getConnection():null);
> }
>
> This code is throwing a javax.naming.NameNotFoundException. I tried with
> various other JNDI names like "java:comp/MyDatasource",
> "java:openejb/MyDatasource" etc. But the same result.
>
> The openejb version I am using is 1.0, because the EJB version I was using
> is 2.0.
>
> Can anyone help me to figure out what is the JNDI name to use for
> connector
> lookup ?
>
> Thanks in advance.
>
> Manoj.
>
> --
> View this message in context:
> http://www.nabble.com/OpenEJB---Datasource-lookup-problem-tp14645858p14645858.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>


-- 
Thanks
- Mohammad Nour


Re: OpenEJB - Datasource lookup problem

2008-01-06 Thread Mohammad Nour El-Din
You can find OpenEJB 3.0 here
http://openejb.apache.org/openejb-30-beta-1.html

On Jan 6, 2008 5:37 PM, Mohammad Nour El-Din <[EMAIL PROTECTED]>
wrote:

> Hi ManojS...
>
>   First thanks for using OpenEJB and thanks again for sharing your
> problems with us to tyr make OpenEJB better :). I recommend to use OpenEJB
> 3.0 as it is the most updated version and all of the current development
> is made on it. I still can't understand from where you call this method, is
> it a method in your bean ??? but from what I see in the code, you have to
> initialize the naming conext first with the proper poperties to be able to
> use. If it is applicable we would like to look at your code to give a more
> precise answer.
>
>
> On Jan 6, 2008 11:51 AM, ManojS <[EMAIL PROTECTED]> wrote:
>
> >
> > Hello,
> >
> > I was playing with openejb and a test ejb application in my machine. My
> > intention was to identify how much openejb is useful for me as an ejb
> > container, so that I can recommend to use at my workplace. While I was
> > trying to integrate openejb along with the application I cannot able to
> > lookup the datasource connection defined in the openejb.conf file. If I
> > explain in detail, my openejb.conf has the following connection
> > configuration.
> >
> > 
> >JdbcDriver   org.gjt.mysql.Driver
> >JdbcUrl  jdbc:mysql://localhost:3306/test_db
> >UserName root
> >Password 12345
> >jtamanaged   true
> > 
> >
> > I am using the "Default Stateless Container" with ctype="STATELESS". And
> > my
> > ejb code (my ejbs are stateless session beans) for datasource lookup is
> > as
> > follows,
> >
> > public Connection getConnection () throws Exception {
> >Context ctx = new InitialContext();
> >Datasource ds = (Datasource) ctx.lookup( "MyDatasource" );
> >return (ds!=null?ds.getConnection():null);
> > }
> >
> > This code is throwing a javax.naming.NameNotFoundException. I tried with
> > various other JNDI names like "java:comp/MyDatasource",
> > "java:openejb/MyDatasource" etc. But the same result.
> >
> > The openejb version I am using is 1.0, because the EJB version I was
> > using
> > is 2.0.
> >
> > Can anyone help me to figure out what is the JNDI name to use for
> > connector
> > lookup ?
> >
> > Thanks in advance.
> >
> > Manoj.
> >
> > --
> > View this message in context: 
> > http://www.nabble.com/OpenEJB---Datasource-lookup-problem-tp14645858p14645858.html
> >
> > Sent from the OpenEJB User mailing list archive at Nabble.com.
> >
> >
>
>
> --
> Thanks
> - Mohammad Nour




-- 
Thanks
- Mohammad Nour


Re: OpenEJB - Datasource lookup problem

2008-01-08 Thread Mohammad Nour El-Din
Please ManojS can oyu send us the code to look at ?

On Jan 8, 2008 7:15 AM, ManojS <[EMAIL PROTECTED]> wrote:

>
>
> hmmm... I could able to configure openejb 3.0 locally. But for my
> enterprise
> application I must not use it for the timebeing since I am using java 1.4
> and tomcat 4.1.24 versions there. So I would prefer to solve the
> datasource
> issue mentioned earlier in openejb 1.0. Can anyone help me ?
>
> Manoj.
>
>
> 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 the JNDI context factory setting at first. Now
> >> the API
> >> has changed as follows.
> >>
> >> public Connection getConnection () throws Exception {
> >>  Properties properties = new Properties();
> >>properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,
> >> "org.apache.openejb.client.LocalInitialContextFactory");
> >>  Context ctx = new InitialContext(properties);
> >>  Datasource ds = (Datasource) ctx.lookup( "MyDatasource" );
> >>  return (ds!=null?ds.getConnection():null);
> >> }
> >>
> >> I have implemented this method in a session bean only. Also, for your
> >> information, I have added the datasource as resource referense in my
> >> "ejb-jar.xml" and "openejb-jar.xml" files for the session bean as
> >> follows.
> >>
> >> 
> >>   MyDatasource
> >>   javax.sql.DataSource
> >> 
> >>
> >> Still the problem exist.
> >>
> >> Now, as you all suggested, I will use the latest openejb 3.0. Let me
> >> configure it first, and then in any case of issues I will come back
> >> to you
> >> for help.
> >
> > As a general practice I recommend checking the log files too.  We
> > print very specific information there as well.  Say for example you
> > forgot to implement some methods from your EJBObject interface in your
> > bean, we will print a list of every method you need to add.   Say you
> > decide to start using ejb3 annotations and you try something like this
> > '@Resource EntityManager', we're going to output a message saying that
> > you need to use '@PersistenceContext EntityManager' for injection of
> > an EntityManager, etc. etc.
> >
> > It's our belief that if you make a mistake and we didn't catch it in a
> > good way and tell you enough information to move forward that the
> > mistake is really ours.  So definitely let us know if you run into any
> > situation where the error could be more helpful.
> >
> > -David
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/OpenEJB---Datasource-lookup-problem-tp14645858p14682665.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>


-- 
Thanks
- Mohammad Nour


Re: EJB 3.1 Early Draft

2008-03-04 Thread Mohammad Nour El-Din
David I have 2 questions

1- Apache replied with NO on that JSR, Will this affect our
implementation of EJB3.1 in OpenEJB ?

2- Do you need more people in JSR318 (EJB 3.1) Expert Group, as I am
applying for the JSPA these days ???

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://jcp.org/aboutJava/communityprocess/edr/jsr318/index.html
>
>  The review will be open till March 30, 2008.
>
>  -David
>
>



-- 
Thanks
- Mohammad Nour


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

2008-03-04 Thread Mohammad Nour El-Din
Hi David...

  I have a couple of ideas about that:

1- I will not present in JDC as there is no available place for my
presentation as we wanted other visitors from abroad to present all
their stuff as people here will not get other chances to attend those
presentations life.

2- At last I will add entries to my blog, and I am planning to write a
seried of entries about EJB3, EJB3.1 and OpenEJB.

3- I am planning to present EJB3, EJB3.1 and OpenEJB in my colledge in
a series of presentations to spread the technology to fresh people.

4- What about a 2 book about OpenEJB 1) For JEE developers and how
they can leverage the features of OpenEJB to develop and test their
EJBs, 2) A comprehensive book for Hackers documenting the inernals of
OpenEJB which will ease the way of new contributers and committers to
join or learn from OpenEJB itself, I've found a book which makes the
same but for Tomcat. You've said that you can find a publisher which
can help up in printing the book and publish it.

What do u think ???

On Tue, Mar 4, 2008 at 10:15 AM, David Blevins <[EMAIL PROTECTED]> wrote:
> 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, even give you some phone time.  I may even be able to help
>  you find a publisher if you need it.
>
>  A few topic ideas might be:
>- learning ejb 3.0 with OpenEJB; maybe show off the validation
>  functionality and how it can be used to learn ejb and speed up
>  development
>- advanced ejb dependency injection; show off the ability to extend
>  injection beyond the spec supported types
>- java ee with tomcat; show how to beef up your servlets with
>  better dependency injection, jms, jpa, transactions, jax-ws, etc.
>  doesn't even have to use ejbs.
>- unit testing ejbs; show anything from basic testing to detailed
>  configuration, testing transactions, testing security
>- unit testing GlassFish apps; yes, we support their descriptors
>  and can unit test their ejbs just fine.
>- host ejbs from your app; show how to embed OpenEJB to make your
>  application capable of supporting ejbs and even remote ejb clients
>- debugging ejbs in your IDE with no plugins; show how when using
>  openejb to test your apps you can use standard debugging with no
>  plugins or remote servers.
>
>  If you're a member or leader of a Java User Group, feel free to
>  forward this offer out to your list.
>
>  You're welcome to email me directly or via the OpenEJB lists.
>
>  -David
>
>
>



-- 
Thanks
- Mohammad Nour


Re: EJB 3.1 Early Draft

2008-03-05 Thread Mohammad Nour El-Din
On Tue, Mar 4, 2008 at 9:50 PM, David Blevins <[EMAIL PROTECTED]> wrote:
>
>  On Mar 4, 2008, at 1:32 AM, Mohammad Nour El-Din wrote:
>
>  > David I have 2 questions
>  >
>  > 1- Apache replied with NO on that JSR, Will this affect our
>  > implementation of EJB3.1 in OpenEJB ?
>
>  No.  The issue there is primarily around unfair "field of use"
>  restrictions on some JSRs, namely Java SE.  IIUC, it affects Apache
>  Harmony and that is what they are trying to change.  If you read the
>  vote comments, nearly all the vendors express the same concern.
Yeah I've read the comments but the point was not so clear to me,
thanks for clarification.
>
>
>  > 2- Do you need more people in JSR318 (EJB 3.1) Expert Group, as I am
>  > applying for the JSPA these days ???
>
>  It's all up to Ken, the spec lead.  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://jcp.org/aboutJava/communityprocess/edr/jsr318/index.html
>  >>
>  >> The review will be open till March 30, 2008.
>  >>
>  >> -David
>  >>
>  >>
>  >
>  >
>  >
>  > --
>  > Thanks
>  > - Mohammad Nour
>  >
>
>



-- 
Thanks
- Mohammad Nour


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

2008-03-05 Thread Mohammad Nour El-Din
I hope I can do all of this, I will start to look at these at the end
of March :) .

On Tue, Mar 4, 2008 at 10:25 PM, David Blevins <[EMAIL PROTECTED]> wrote:
>
>  On Mar 4, 2008, at 1:47 AM, Mohammad Nour El-Din wrote:
>
>  > 1- I will not present in JDC as there is no available place for my
>  > presentation as we wanted other visitors from abroad to present all
>  > their stuff as people here will not get other chances to attend those
>  > presentations life.
>  >
>  > 2- At last I will add entries to my blog, and I am planning to write a
>  > seried of entries about EJB3, EJB3.1 and OpenEJB.
>  >
>  > 3- I am planning to present EJB3, EJB3.1 and OpenEJB in my colledge in
>  > a series of presentations to spread the technology to fresh people.
>  >
>  > 4- What about a 2 book about OpenEJB 1) For JEE developers and how
>  > they can leverage the features of OpenEJB to develop and test their
>  > EJBs, 2) A comprehensive book for Hackers documenting the inernals of
>  > OpenEJB which will ease the way of new contributers and committers to
>  > join or learn from OpenEJB itself, I've found a book which makes the
>  > same but for Tomcat. You've said that you can find a publisher which
>  > can help up in printing the book and publish it.
>
>  Good luck with the blog entries and college presentations.  If you
>  need something there just let me know.  And if you decide to publish
>  articles I can probably help.  Book publishing 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:
>  >> 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, even give you some phone time.  I may even be able to help
>  >> you find a publisher if you need it.
>  >>
>  >> A few topic ideas might be:
>  >>   - learning ejb 3.0 with OpenEJB; maybe show off the validation
>  >> functionality and how it can be used to learn ejb and speed up
>  >> development
>  >>   - advanced ejb dependency injection; show off the ability to extend
>  >> injection beyond the spec supported types
>  >>   - java ee with tomcat; show how to beef up your servlets with
>  >> better dependency injection, jms, jpa, transactions, jax-ws, etc.
>  >> doesn't even have to use ejbs.
>  >>   - unit testing ejbs; show anything from basic testing to detailed
>  >> configuration, testing transactions, testing security
>  >>   - unit testing GlassFish apps; yes, we support their descriptors
>  >> and can unit test their ejbs just fine.
>  >>   - host ejbs from your app; show how to embed OpenEJB to make your
>  >> application capable of supporting ejbs and even remote ejb clients
>  >>   - debugging ejbs in your IDE with no plugins; show how when using
>  >> openejb to test your apps you can use standard debugging with no
>  >> plugins or remote servers.
>  >>
>  >> If you're a member or leader of a Java User Group, feel free to
>  >> forward this offer out to your list.
>  >>
>  >> You're welcome to email me directly or via the OpenEJB lists.
>  >>
>  >> -David
>  >>
>  >>
>  >>
>  >
>  >
>  >
>  > --
>  > Thanks
>  > - Mohammad Nour
>  >
>
>



-- 
Thanks
- Mohammad Nour


Re: maven build of openEJB3 [Virus checked]

2008-06-08 Thread Mohammad Nour El-Din
Hi Dain...
  Manu added the plugin repo but the build still failed on his
*Windows* machine, he said he will try it using an older version of
Maven - like 2.0.6 - but never knew what happened with him. Wolfgang,
do you run build in the same/similar environment ?

On Fri, Jun 6, 2008 at 1:45 AM, Dain Sundstrom <[EMAIL PROTECTED]> wrote:
> I think I fixed this earlier today.  I forgot to add declare the plugin
> repository for this SXC plugin.
>
> Anyway, if you svn update your source code, it would build now.
>
> -dain
>
>
> On Jun 5, 2008, at 8:24 AM, [EMAIL PROTECTED] wrote:
>
>> Hi guys,
>>
>> I am pretty new to openEJB3, so please bare with me, if I am asking the
>> obvious.
>>
>> Compilation of openEJB3 subproject openejb-j2ee breaks with the following
>> message:
>>
>>
>> [INFO]
>> 
>> [INFO] Building OpenEJB :: Container :: Java EE
>> [INFO]task-segment: [install]
>> [INFO]
>> 
>> [INFO] [remote-resources:process {execution: default}]
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [dependency-report:report {execution: default}]
>> [INFO] [bundle:manifest {execution: bundle-manifest}]
>> -
>> this realm =
>> app0.child-container[com.envoisolutions.sxc:sxc-jaxb-maven-plugin]
>> urls[0] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb-maven-plugin/0.7-SNAPSHOT/sxc-jaxb-maven-plugin-0.7-SNAPSHOT.jar
>> urls[1] = file:/D:/Dokumente und
>> Einstellungen/DE16297/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.0
>> /wstx-asl-3.2.0.jar
>> urls[2] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar
>> urls[3] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-core/0.7-SNAPSHOT/sxc-core-0.7-SNAPSHOT.jar
>> urls[4] = file:/C:/Programme/Java/jdk1.5.0_12/jre/../lib/tools.jar
>> urls[5] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-runtime/0.7-SNAPSHOT/sxc-runtime-0.7-SNAPSHOT.jar
>> urls[6] = file:/D:/Dokumente und
>> Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.1.2
>> /jaxb-xjc-2.1.2.jar
>> urls[7] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
>> urls[8] = file:/D:/Dokumente und
>> Einstellungen/DE16297/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.2
>> /jaxb-impl-2.1.2.jar
>> urls[9] = file:/D:/Dokumente und
>>
>> Einstellungen/DE16297/.m2/repository/com/envoisolutions/sxc/sxc-jaxb/0.7-SNAPSHOT/sxc-jaxb-0.7-SNAPSHOT.jar
>> Number of imports: 6
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>>
>>
>> this realm = plexus.core
>> urls[0] = file:/C:/Programme/Apache Software Foundation/apache-maven-2.0.8
>> /lib/maven-2.0.8-uber.jar
>> Number of imports: 6
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> import: [EMAIL PROTECTED]
>> -
>> [INFO]
>> 
>> [ERROR] BUILD ERROR
>> [INFO]
>> 
>> [INFO] Internal error in the plugin manager executing goal
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
>> Unable to find the mojo
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>> the
>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>> javax/xml/bind/JAXBException
>> [INFO]
>> 
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
>> the plugin manager executing goal
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate':
>> Unable to find the mojo
>> 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin:0.7-SNAPSHOT:generate' in
>> the
>> plugin 'com.envoisolutions.sxc:sxc-jaxb-maven-plugin'
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:543)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>> at
>>
>> org.apache.maven.

Re: Re: maven build of openEJB3 [Virus checked]

2008-06-09 Thread Mohammad Nour El-Din
Does it work now, if not please start from a clean Maven local repo
and if it still not working try not to use a repo path with spaces,
and please tell us what you got :).

On Mon, Jun 9, 2008 at 10:17 AM,  <[EMAIL PROTECTED]> wrote:
> Hi Mohammad Nour,
>
> I downloaded openEJB3.0 from the subversion repository
> and use MAVEN 2.0.8 on a Windows machine.
>
> I first suspected that it has to do with blanks in my path to the local
> maven repository.
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
>  --
> --
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:[EMAIL PROTECTED]
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
> --
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: [EMAIL PROTECTED]
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic data
> transmitted by e-mail is not completely guaranteed and that data may be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a letter.
> * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * *
>



-- 
Thanks
- Mohammad Nour


Re: Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

2008-06-11 Thread Mohammad Nour El-Din
I don't unserstand why we should increase the Java Heap size ?

On Wed, Jun 11, 2008 at 10:39 AM,  <[EMAIL PROTECTED]> wrote:
> Hi -dain
>
> the last build error I mailed in,
> was what it said it was, increasing the JAVA heap did the trick.
> I successfully compiled openejb3 ...
>
> mit freundlichen Grüßen/best regards
>
> Wolfgang Schrecker
>
> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird dieser
> allumfassend, so muß der Inhalt ganz verloren gehen."
> from G. Frege: Die Grundlagen der Arithmetik S. 40
>
>
>
>  --
> --
>
> Atos Worldline Processing GmbH
> Hahnstrasse 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> mailto:[EMAIL PROTECTED]
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
> --
>
> Atos Worldline Processing GmbH
> Hahnstraße 25
> 60528 Frankfurt/Main
> Germany
> Phone: +49 69/6657-1176
> Fax :
> mailto: [EMAIL PROTECTED]
> http://www.atosworldline.com
>
> Geschäftsführer: Erik Munk Koefoed
> Aufsichtsratsvorsitzender: Didier Dhennin
> Sitz der Gesellschaft: Frankfurt/Main
> Handelsregister: Frankfurt/Main HRB 40 417
>
>
> * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * *
> This e-mail is destined for the above mentioned recipient. In case you
> received this e-mail by accident, we would appreciate it if you could
> contact the sender and delete all copies stored on your computer.
> Please be aware that the security and confidentiality of electronic data
> transmitted by e-mail is not completely guaranteed and that data may be seen,
> copied, downloaded or changed by third persons during transmission.
> Atos Origin accepts no liability for the security and confidentiality of
> data and documents sent by e-mail. Please make sure that all important
> messages will be confirmed in writing by means of a telefax or a letter.
> * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * *
>



-- 
Thanks
- Mohammad Nour


Re: Antwort: Re: Antwort: Re: Re: maven build of openEJB3 [Virus checked]

2008-06-11 Thread Mohammad Nour El-Din
Thanks for clarification :)

On Wed, Jun 11, 2008 at 8:57 PM, Dain Sundstrom <[EMAIL PROTECTED]> wrote:
> This would only be needed if the build fails (and it is only for the maven
> process).  The problem is we generate and compile a large number of classes,
> and the plugin is using javac which isn't very efficient memory wise.  When
> I get a chance, I'll update the plugin to optionally support the eclipse
> compiler.
>
> -dain
>
> On Jun 11, 2008, at 5:36 AM, Mohammad Nour El-Din wrote:
>
>> I don't unserstand why we should increase the Java Heap size ?
>>
>> On Wed, Jun 11, 2008 at 10:39 AM,  <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> Hi -dain
>>>
>>> the last build error I mailed in,
>>> was what it said it was, increasing the JAVA heap did the trick.
>>> I successfully compiled openejb3 ...
>>>
>>> mit freundlichen Grüßen/best regards
>>>
>>> Wolfgang Schrecker
>>>
>>> "Der Inhalt eines Begriffs nimmt ab, wenn sein Umfang zunimmt; wird
>>> dieser
>>> allumfassend, so muß der Inhalt ganz verloren gehen."
>>> from G. Frege: Die Grundlagen der Arithmetik S. 40
>>>
>>>
>>>
>>> --
>>> --
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstrasse 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> mailto:[EMAIL PROTECTED]
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>> --
>>>
>>> Atos Worldline Processing GmbH
>>> Hahnstraße 25
>>> 60528 Frankfurt/Main
>>> Germany
>>> Phone: +49 69/6657-1176
>>> Fax :
>>> mailto: [EMAIL PROTECTED]
>>> http://www.atosworldline.com
>>>
>>> Geschäftsführer: Erik Munk Koefoed
>>> Aufsichtsratsvorsitzender: Didier Dhennin
>>> Sitz der Gesellschaft: Frankfurt/Main
>>> Handelsregister: Frankfurt/Main HRB 40 417
>>>
>>>
>>> * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * *
>>> This e-mail is destined for the above mentioned recipient. In case you
>>> received this e-mail by accident, we would appreciate it if you could
>>> contact the sender and delete all copies stored on your computer.
>>> Please be aware that the security and confidentiality of electronic data
>>> transmitted by e-mail is not completely guaranteed and that data may be
>>> seen,
>>> copied, downloaded or changed by third persons during transmission.
>>> Atos Origin accepts no liability for the security and confidentiality of
>>> data and documents sent by e-mail. Please make sure that all important
>>> messages will be confirmed in writing by means of a telefax or a letter.
>>> * * * * * * * * L E G A LD I S C L A I M E R * * * * * * * *
>>>
>>
>>
>>
>> --
>> Thanks
>> - Mohammad Nour
>
>



-- 
Thanks
- Mohammad Nour


Re: FW: Please help

2008-06-19 Thread Mohammad Nour El-Din
Hi Lavanya...

   Would you please send the way you setup and define the DataSource .

On Thu, Jun 19, 2008 at 9:44 PM, Lavanya Danda <[EMAIL PROTECTED]> wrote:
>
> -Original Message-
> From: Lavanya Danda
> Sent: Thursday, June 19, 2008 1:40 PM
> To: '[EMAIL PROTECTED]'
> Subject: Please help
>
>
> I am trying to setup data source with openejb. I get the following error,
>
> ERROR - FATAL ERROR: Unknown error in Assembler. Please send the following 
> stack trace and this message to [EMAIL PROTECTED] :
>
> org.apache.xbean.recipe.ConstructionException: Error invoking factory method: 
> public static 
> org.apache.geronimo.transaction.manager.GeronimoTransactionManager 
> org.apache.openejb.resource.GeronimoTransactionManagerFactory.create(int,byte[],java.lang.String,int,boolean,boolean,int,java.lang.String,java.lang.String,java.lang.String,int,int,int,int,int)
>  throws java.lang.Exception
>
> at 
> org.apache.xbean.recipe.ReflectionUtil$StaticFactory.create(ReflectionUtil.java:721)
>
> at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:268)
>
> at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
>
> at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
>
> at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
>
> at 
> org.apache.openejb.assembler.classic.Assembler.createTransactionManager(Assembler.java:1058)
>
> at 
> org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:322)
>
> at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:250)
>
> at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:149)
>
> at org.apache.openejb.OpenEJB.init(OpenEJB.java:288)
>
> at org.apache.openejb.OpenEJB.init(OpenEJB.java:267)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
>
> at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
>
> at 
> org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:62)
>
> at 
> org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:51)
>
> at 
> org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:40)
>
> at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:679)
>
> at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:259)
>
> at javax.naming.InitialContext.init(InitialContext.java:235)
>
> at javax.naming.InitialContext.(InitialContext.java:209)
>
> at net.mpm.reportadmin.web.ReportAdminSBTest.test(ReportAdminSBTest.java:33)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
>
> at junit.framework.TestCase.runTest(TestCase.java:154)
>
> at junit.framework.TestCase.runBare(TestCase.java:127)
>
> at junit.framework.TestResult$1.protect(TestResult.java:106)
>
> at junit.framework.TestResult.runProtected(TestResult.java:124)
>
> at junit.framework.TestResult.run(TestResult.java:109)
>
> at junit.framework.TestCase.run(TestCase.java:118)
>
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
>
> at junit.framework.TestSuite.run(TestSuite.java:203)
>
> at 
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
>
> at 
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>
> at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>
> at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>
> at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>
> at 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>
> Caused by: org.objectweb.howl.log.LogConfigurationException: Unable to obtain 
> lock on C:\openejb-3.0\txlog\howl_1.log
>
> at org.objectweb.howl.log.LogFile.open(LogFile.java:191)
>
> at org.objectweb.howl.log.LogFileManager.open(LogFileManager.java:784)
>
> at org.objectweb.howl.log.Logger.open(Logger.java:303)
>
> at org.objectweb.howl.log.xa.XALogger.open(XALogger.java:893)
>
> at org.apache.geronimo.transaction.log.HOWLLog.doStart(HOWLLog.java:224)
>
> at 
> org.apache.openejb.resource.GeronimoTransactionManagerFactory.create(GeronimoTransactionManagerFactory.java:76)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>
> at 
> sun.reflect.D

Re: @LocalBinding with openejb

2008-09-08 Thread Mohammad Nour El-Din
I think Andreas means that you can override the binding to make it
local rather than remote or vise-versa .

On Mon, Sep 8, 2008 at 10:49 AM, Jean-Louis MONTEIRO
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Changing the JNDI name is also possible with OpenEJB.
> You can override default naming for each module, ejb, ...
> Did you have a look on that ?
> http://openejb.apache.org/3.0/jndi-names.html
>
> Regards,
> Jean-Louis
>
>
>
> Andreas Karalus wrote:
>>
>> dain,
>>
>> thank you for your reply. The annotations  are specific to jboss and
>> provide  the  capability  to override the default (local and/or remote)
>> jndi  binding  behaviour (they  are not  mandatory).
>>
>> I created a feature request in jira.
>> https://issues.apache.org/jira/browse/OPENEJB-908
>>
>> regards,
>> andreas
>>
>>
>> Dain Sundstrom wrote:
>>>
>>> We could add something for that.  Can you explain exactly how the
>>> annotation is supposed to work?  Are there other similar annotations
>>> for stuff like remote interfaces?
>>>
>>> Also, if you have time, can you add a "New Feature" jira issue
>>> (http://issues.apache.org/jira/browse/OPENEJB
>>> ).
>>>
>>> -dain
>>>
>>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/%40LocalBinding-with-openejb-tp19328370p19368173.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>



-- 
Thanks
- Mohammad Nour


Re: Maven and OpenEJB unit testing

2008-12-08 Thread Mohammad Nour El-Din
Hi Marcin...

  Did you define this jar file as a dependency in any other module in
its POM.XML file ?

On Mon, Dec 8, 2008 at 10:02 AM, Marcin Kwapisz <[EMAIL PROTECTED]> wrote:
> Hi.
>
> My ejb module (PersonAccountModule) depends on ejb facade components in 
> different project (EJBFacades). So I had to configure classpath as follows:
>
> p.put("openejb.deployments.classpath.include", 
> ".*/(PersonAccountModule|EJBFacades)/target/classes.*");
>
> ejb-jar.xml in PersonAccountModule is not empty.
>
> All unit tests work fine, but log looks rather strange. I do not understand 
> the third line below. Why openejb takes jar from my local repository and 
> doesn't take classes from target/classes folder as specified in 
> classpath.include pattern?
>
> INFO - Found EjbModule in classpath: 
> D:\JavaProg\MySamples\EJB\Samplev7\JEEMavenProject2\PersonAccountModule\target\classes
> INFO - Found EjbModule in classpath: 
> D:\JavaProg\MySamples\EJB\Samplev7\JEEMavenProject2\PersonAccountModule\target\test-classes
> INFO - Found EjbModule in classpath: e:\Profiles\Marcin 
> Kwapisz\.m2\repository\zsk\samples\EJBFacades\1.0-SNAPSHOT\EJBFacades-1.0-SNAPSHOT.jar
>
> Regards
> --
> Marcin Kwapisz
> Division of Computer Networks
> Technical Univeristy of Lodz, Poland
>
>
>



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: Maven and OpenEJB unit testing

2008-12-08 Thread Mohammad Nour El-Din
Hi Sanga...

  Can you please send this maessage in a separate thread/new mail on
the same list, becuase the original problem of this thread is not
related to your problem.

On Mon, Dec 8, 2008 at 9:16 PM, sanga lawalata <[EMAIL PROTECTED]> wrote:
> I have this error code  while try to persist this entity bean.
>
> it seems that It can get the sequence number from oracle dual sequence.
> Below I put also the ddl.
>
> Any advice ?
>
> WARN - Unexpected exception from beforeCompletion; transaction will roll
> back
> 
> org.apache.openjpa.persistence.PersistenceException: null
>at
> org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.getConnection(AbstractJDBCSeq.java:162)
>at
> org.apache.openjpa.jdbc.kernel.NativeJDBCSeq.nextInternal(NativeJDBCSeq.java:209)
>at
> org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.next(AbstractJDBCSeq.java:60)
>at
> org.apache.openjpa.util.ImplHelper.generateValue(ImplHelper.java:160)
>at
> org.apache.openjpa.util.ImplHelper.generateFieldValue(ImplHelper.java:144)
>at
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.assignField(JDBCStoreManager.java:592)
>at
> org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:464)
>at
> org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:440)
>
> this is my EntityBean,
>
> [code]
> @Entity
> @Table(name = "myTable")
>
> public class TestBean implements Comparable,
>Serializable {
>
>@Transient
>private static final long serialVersionUID = 6555325804020146762L;
>
>@Id
>@GeneratedValue(strategy = GenerationType.SEQUENCE,generator =
> "SEQ_TESTSEQUENCE" )
>@SequenceGenerator(name = "SEQ_TESTSEQUENCE", sequenceName =
> "SEQ_TESTSEQUENCE",allocationSize=1)
>private long id;
>
>@Temporal(TemporalType.TIMESTAMP)
>@Column(name = "CREATED", nullable = false)
>private Date created;
>
>@Column(name = "ERROR_MESSAGE", nullable = false,length=200)
>private String errorMessage;
> [/code]
>
> and this my persistence.xml
>
> [code]
>
> http://java.sun.com/xml/ns/persistence";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";
>   version="1.0">
>
>
>
>
>java:/DefaultDS
>
>my.package.TestBean
>
>
>
> 
>
> [/code]
>
> My DDL :
>
> [code]
>   CREATE SEQUENCE  "DEV001"."SEQ_TESTSEQUENCE"  MINVALUE 1 MAXVALUE
> 999 INCREMENT BY 1 START WITH 250060 CACHE 20
> NOORDER  NOCYCLE ;
> [/code]
>
> best regards
> sanga lawalata
>



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: Maven and OpenEJB unit testing

2008-12-08 Thread Mohammad Nour El-Din
Thanks Sanga, I didn't notice the mail you sent later.

On Tue, Dec 9, 2008 at 12:11 AM, Mohammad Nour El-Din
<[EMAIL PROTECTED]> wrote:
> Hi Sanga...
>
>  Can you please send this maessage in a separate thread/new mail on
> the same list, becuase the original problem of this thread is not
> related to your problem.
>
> On Mon, Dec 8, 2008 at 9:16 PM, sanga lawalata <[EMAIL PROTECTED]> wrote:
>> I have this error code  while try to persist this entity bean.
>>
>> it seems that It can get the sequence number from oracle dual sequence.
>> Below I put also the ddl.
>>
>> Any advice ?
>>
>> WARN - Unexpected exception from beforeCompletion; transaction will roll
>> back
>> 
>> org.apache.openjpa.persistence.PersistenceException: null
>>at
>> org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.getConnection(AbstractJDBCSeq.java:162)
>>at
>> org.apache.openjpa.jdbc.kernel.NativeJDBCSeq.nextInternal(NativeJDBCSeq.java:209)
>>at
>> org.apache.openjpa.jdbc.kernel.AbstractJDBCSeq.next(AbstractJDBCSeq.java:60)
>>at
>> org.apache.openjpa.util.ImplHelper.generateValue(ImplHelper.java:160)
>>at
>> org.apache.openjpa.util.ImplHelper.generateFieldValue(ImplHelper.java:144)
>>at
>> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.assignField(JDBCStoreManager.java:592)
>>at
>> org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:464)
>>at
>> org.apache.openjpa.util.ApplicationIds.assign(ApplicationIds.java:440)
>>
>> this is my EntityBean,
>>
>> [code]
>> @Entity
>> @Table(name = "myTable")
>>
>> public class TestBean implements Comparable,
>>Serializable {
>>
>>@Transient
>>private static final long serialVersionUID = 6555325804020146762L;
>>
>>@Id
>>@GeneratedValue(strategy = GenerationType.SEQUENCE,generator =
>> "SEQ_TESTSEQUENCE" )
>>@SequenceGenerator(name = "SEQ_TESTSEQUENCE", sequenceName =
>> "SEQ_TESTSEQUENCE",allocationSize=1)
>>private long id;
>>
>>@Temporal(TemporalType.TIMESTAMP)
>>@Column(name = "CREATED", nullable = false)
>>private Date created;
>>
>>@Column(name = "ERROR_MESSAGE", nullable = false,length=200)
>>private String errorMessage;
>> [/code]
>>
>> and this my persistence.xml
>>
>> [code]
>>
>> http://java.sun.com/xml/ns/persistence";
>>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
>> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";
>>   version="1.0">
>>
>>
>>
>>
>>java:/DefaultDS
>>
>>my.package.TestBean
>>
>>
>>
>> 
>>
>> [/code]
>>
>> My DDL :
>>
>> [code]
>>   CREATE SEQUENCE  "DEV001"."SEQ_TESTSEQUENCE"  MINVALUE 1 MAXVALUE
>> 999 INCREMENT BY 1 START WITH 250060 CACHE 20
>> NOORDER  NOCYCLE ;
>> [/code]
>>
>> best regards
>> sanga lawalata
>>
>
>
>
> --
> 
> Thanks
> - Mohammad Nour
> - LinkedIn: http://www.linkedin.com/in/mnour
> 
> "Life is like riding a bicycle. To keep your balance you must keep moving"
> - Albert Einstein
>



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: Helloworld Problem

2008-12-27 Thread Mohammad Nour El-Din
Hi Kim...

  Where are your logs, I can't find them attached to this mail.

On Sat, Dec 27, 2008 at 4:59 PM, kim law  wrote:
> Hello :)
> i have a problem with my hello world
> my os is MAC OS X
> i send you my logs too
>  thank you
>
>
>
>



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: Helloworld Problem

2008-12-27 Thread Mohammad Nour El-Din
Hi Jacek...

  I still can't find the attached log :S .

On Sat, Dec 27, 2008 at 8:22 PM, Jacek Laskowski  wrote:
> On Sat, Dec 27, 2008 at 5:46 PM, Mohammad Nour El-Din
>  wrote:
>
>>  Where are your logs, I can't find them attached to this mail.
>
> They were, but Kim is not subscribed to the mailing list and hence I
> had to approve the email. See attached.
>
> p.s. Include him/her when replying until (s)he gets subscribed.
>
> Jacek
>
> --
> Jacek Laskowski
> Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl
>



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: Helloworld Problem

2008-12-28 Thread Mohammad Nour El-Din
Thanks Jacek

On Sun, Dec 28, 2008 at 3:50 AM, Jacek Laskowski  wrote:
> On Sat, Dec 27, 2008 at 8:04 PM, Mohammad Nour El-Din
>  wrote:
>
>>  I still can't find the attached log :S .
>
> Dunno what's happened. Uploaded them to
> http://people.apache.org/~jlaskowski/openejb.log.
>
> Jacek
>
> --
> Jacek Laskowski
> Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl
>



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: Please unsubscribe me

2009-02-16 Thread Mohammad Nour El-Din
Send a mail to this e-mail address "users-unsubscr...@openejb.apache.org"

On Sun, Feb 15, 2009 at 5:55 PM, Francisco J. Bido  wrote:
> Hi,
>
> It's been years since last developed with EJBs.  It was great but it's time
> say goodbye.
> Could you forward this message to someone who can unsubscribe me from the
> this mailing list.
>
> email = b...@mac.com
>
> Best,
> -Francisco J. Bido
>
> On Feb 12, 2009, at 10:44 PM, David Blevins wrote:
>
>> Replied on the u...@geronimo.a.o list and Cc'ed you.  Hopefully we can get
>> you the help you need there.
>>
>> -David
>>
>> On Feb 12, 2009, at 1:13 AM, winni wrote:
>>
>>>
>>> Hi, all. I am sorry to trouble you.
>>>
>>> I tried to deploy the "Testing Security Example" in Geronimo. But it
>>> shows
>>> as below:
>>>
>>> Deployment failed:
>>> Ejb app has method permissions but no security configuration supplied in
>>> geronimo plan.
>>>
>>> I think that it need corresponding ejb-jar.xml or openejb-jar.xml, but I
>>> don't know how to write them.
>>>
>>> Thanks.
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Deploy-%22Testing-Security-Example%22-in-Geronimo-tp21972317p21972317.html
>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>>
>>>
>>
>
>



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: Why does openejb parse sun-ejb-jar.xml files?

2009-03-07 Thread Mohammad Nour El-Din
Hi Fredrik...

   Actually we added this feature to help people not to make any
required changes if they were developing their EJB modules on another
Application Servers or Containers when they want to redeploy the same
module on OpenEJB. But seems that you pointed us to a good idea which
is to make it optional :-), thanks about that.

Actually we also support deploying BEA WebLogic EJB modules and we are
on the road to support deploying WebSphere Application servers EJB
modules too.

On Sat, Mar 7, 2009 at 11:44 AM, Fredrik Jonson  wrote:
> Hello all,
>
> I'm trying to develop a ear, connector, ejb project that deploys
> properly in both Geronimo and Glassfish. I thought I could just put
> all the eronimo specific stuff in openejb-jar.xml and the glassfish
> stuff in sun-ejb-jar.xml - without container interference.
>
> Unfortunately, for some surprising reason openejb has a configuration
> parser (SunConversion) that parses not only openejb-jar.xml, but also
> tries to parse sun-ejb-jar.xml. Why?
>
> As far as I can tell from the source code the use of SunConversion is
> not optional. And searching doesn't really turn up anything about this
> "feature", so I'd be greatful for some enligthenment here.
>
> Now, I can work around this by making a special package that excludes
> the sun file from the module, but that means that I have to add a lot
> of infrastructure (a couple of maven modules) to manage a separate
> track for geronimo and glassfish, instead of just being able to ship
> one single ear that deploys properly on both application servers.
>
> See also: https://issues.apache.org/jira/browse/GERONIMO-4573
>
> --
> Fredrik Jonson
>
>



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: Help needed...

2009-04-29 Thread Mohammad Nour El-Din
Hi Samuel...

  We are so glad to send this question to us, but this list is for
OpenEJB users and general EJB questions. I think it is better to read
the WebLogic reference documents.

On Wed, Apr 29, 2009 at 3:25 PM, Samuel Ravikumar Thangamuthu,
Chennai  wrote:
>
> Hi,
>
>
>
>  I am using Eclipse and Weblogic App Server to run "HelloWorld"
> Application. I have written everything correctly but when I run the
> application it shows the error "Error
> javax.naming.NoInitialContextException: Need to specify class name in
> environment or system property, or as an applet parameter, or in an
> application resource file:  java.naming.factory.initial".
>
>
>
> But when I include the code "
> System.setproperty("java.naming.factory.initial","weblogic.jndi.TengahIn
> itialContextFactory");
>
> It says that "weblogic.jndi.TengahInitialContextFactory" could not be
> instantiated. The below is the Client program. I am struck and not able
> to proceed. Please help me to overcome this.
>
>
>
> package com.mypack;
>
>
>
> import java.util.*;
>
> import java.util.Properties;
>
> import javax.naming.InitialContext;
>
> import javax.naming.Context;
>
> import javax.naming.*;
>
> import java.rmi.*;
>
> import javax.rmi.PortableRemoteObject;
>
>
>
> public class HelloClient {
>
>      public static void main(String a[]){
>
>            try{
>
>
>
>
> System.setProperty("java.naming.factory.initial","weblogic.jndi.TengahIn
> itialContextFactory");
>
>
> System.setProperty("java.namimg.provider.url","http://10.104.26.37:7001";
> );
>
>
>
>            InitialContext initialContext = new InitialContext();
>
>            System.out.println(" CONTEXT GOT");
>
>
>
>            Object ref =  initialContext.lookup("HelloWorldHome");
>
>            System.out.println(" REFERENCE GOT");
>
>
>
>            HelloWorldHome home =
> (HelloWorldHome)PortableRemoteObject.narrow(ref, HelloWorldHome.class);
>
>
>
>            HelloWorld myHelloWorld = home.create();
>
>            System.out.println(" Calling EJB ...");
>
>
>
>            String message = "";
>
>            message = myHelloWorld.sayHello();
>
>
>
>            System.out.println("The message is "+message);
>
>
>
>      }catch(Exception e){
>
>            System.err.println(" Error "+e);
>
>            System.exit(2);
>
>      }
>
> }
>
>
>
> }
>
>
>
>
>
> Thanks in advance, 
>
> Samuel.T 
>
> 
>
>
>
>
>
> DISCLAIMER:
> ---
>
> The contents of this e-mail and any attachment(s) are confidential and 
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its affiliates. 
> Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect the 
> opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification, 
> distribution and / or publication of
> this message without the prior written consent of the author of this e-mail 
> is strictly prohibited. If you have
> received this email in error please delete it and notify the sender 
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
> ---



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: EjbModule fail to validate

2009-06-05 Thread Mohammad Nour El-Din
Hi Nick...

  For looking-up EJB(s) from an embedded OpenEJB containers you should
use org.apache.openejb.client.LocalInitialContextFactory. Take a look
at this example
http://openejb.apache.org/3.0/simple-stateless-example.html . For the
list of examples we have on our site take a look at this link
http://openejb.apache.org/OPENEJB/examples.html .

On Fri, Jun 5, 2009 at 7:16 PM, Nick Mpallas wrote:
> Problem is solved...but when i do new InitailContext to look up my bean now i
> get the error: javax.naming.NoInitialContextException: Need to specify class
> name in environment or system property, or as an applet parameter, or in an
> application resource file:  java.naming.factory.initial.Obviously i am losing
> the way to obtain the ejb correctly from the embedded container.Any
> suggestions apart from the RTFM!
>
> thanks
>
>
> On Friday 05 June 2009 18:31:32 Nick Mpallas wrote:
>>  Hi all,
>>  i have a maven project and i want to use openejb for unit testing
>>  purposes.I have a META-INF/ with persistence.xml and ejb-jar.xml file
>>  with the ejb that i want the container to load.The container creates the
>>  classpath.ear project correctly but fails to deploy the ear file with
>>  the error(i have set VERBOSE level log):
>>  INFO - openejb.home
>>  =
>>
>> /home/nmpallas/dev/workplace-testng/mint_tesng/commons/mtests/src/main/reso
>> urces INFO - openejb.base
>>  =
>>
>> /home/nmpallas/dev/workplace-testng/mint_tesng/commons/mtests/src/main/reso
>> urces INFO - Configuring Service(id=Default Security Service,
>>  type=SecurityService, provider-id=Default Security Service)
>>  INFO - Configuring Service(id=Default Transaction Manager,
>>  type=TransactionManager, provider-id=Default Transaction Manager)
>>  INFO - Found EjbModule in
>>  classpath:
>>
>> /home/nmpallas/dev/workplace-testng/mint_tesng/commons/mtests/target/classe
>> s INFO - Beginning
>>  load:
>>
>> /home/nmpallas/dev/workplace-testng/mint_tesng/commons/mtests/target/classe
>> s INFO - Configuring enterprise application: classpath.ear
>>  INFO - Configuring Service(id=Default Stateless Container,
>>  type=Container, provider-id=Default Stateless Container)
>>  INFO - Auto-creating a container for bean MPersistenceController:
>>  Container(type=STATELESS, id=Default Stateless Container)
>>  INFO - Configuring PersistenceUnit(name=ref-app-pu,
>>  provider=org.hibernate.ejb.HibernatePersistence)
>>  INFO - Configuring Service(id=Default JDBC Database, type=Resource,
>>  provider-id=Default JDBC Database)
>>  INFO - Auto-creating a Resource with id 'Default JDBC Database' of type
>>  'DataSource for 'ref-app-pu'.
>>  INFO - Configuring Service(id=Default Unmanaged JDBC Database,
>>  type=Resource, provider-id=Default Unmanaged JDBC Database)
>>  INFO - Auto-creating a Resource with id 'Default Unmanaged JDBC
>>  Database' of type 'DataSource for 'ref-app-pu'.
>>  INFO - Adjusting ref-app-pu  to 'Default JDBC Database'
>>  INFO - Adjusting ref-app-pu  to 'Default Unmanaged
>>  JDBC Database'
>>  ERROR - FAIL ... MPersistenceController:  The  element of the
>>  ejb-jar.xml is for interfaces extending javax.ejb.EJBLocalObject.  If
>>  this interface is intended to be an EJB 3.0 business local view, declare
>>  this interface as
>>
>> com.upstreamsystems.mint.core.PersistenceControllerLocal> usiness-local> or via the @Local annotation on the bean class or interface
>> class. ERROR - Invalid
>>
>> EjbModule(path=/home/nmpallas/dev/workplace-testng/mint_tesng/commons/mtest
>> s/target/classes) WARN - Jar not loaded. classpath.ear.  Module failed
>> validation.
>>  AppModule(path=classpath.ear)
>>
>>  I can't figure out what's wrong with the validation of the
>>  classpath.ear!!!I am stuck with it the last 2 days.
>>
>>  regards
>> Nick
>
> --
>
> "To err is human,to forgive beyond the scope of an operating system"
> \n\
>



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: Security in embedded mode

2009-06-17 Thread Mohammad Nour El-Din
You can do this by running the class which  the openejb.sh/bat file
bootstrap by Java. You run this class giving the main method the
parameters it need. This way you will have a standalone openejb server
running inside Eclipse but not from the plugin. Then you run you
client separately in debug mode too.

Try it and let us know if you have anyother problems.

On Wed, Jun 17, 2009 at 4:06 PM, recursion wrote:
>
> Hi, Jonathan,
>
> Actually when i started my OpenEJB server in debug mode through the Eclipse
> plug-in, i could hit my breakpoints successfully. So the problem was at my
> side.
>
> Thank you for you help and efforts, i appreciate them!
> Still i cannot find how to start the engine in debug mode from the OS prompt
> ?
>
> Regards,
> recursion.
> --
> View this message in context: 
> http://www.nabble.com/Security-in-embedded-mode-tp24054743p24073265.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>ley
>



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: Logging flexability and pluggability in OpenEJB + HOWL

2009-06-17 Thread Mohammad Nour El-Din
HOWL is used by geronimo-transaction manager which implements JTA and
HOWL is used to transaction logging not normal logging like Java
Logging APIs and Log4J.

On Wed, Jun 17, 2009 at 4:13 PM, recursion wrote:
>
> Hi, dear OpenEJB friends,
>
> Another topic that has occupied my attention lately is logging. From what i
> find at the official docs, it seems that OpenEJB is bundled with Simple
> Logging Facade 4J (this jar is present in openejb/lib folder). From what i
> find about SLF4J in wikipedia, it seems that this is a kind of facade that
> can be configured to work with log4j and java.util.logging as a logging
> backend. So, the conclusion i come to, is that OpenEJB can be integrated
> with both log4j and java.util.logging. What about HOWL ? It is present in
> the OpenEJB jars. Can it be configured to work with OpenEJB ?
>
>
> Regards,
> recursion.
> --
> View this message in context: 
> http://www.nabble.com/Logging-flexability-and-pluggability-in-OpenEJB-%2B-HOWL-tp24073395p24073395.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: Logging flexability and pluggability in OpenEJB + HOWL

2009-06-18 Thread Mohammad Nour El-Din
You are so welcome :)

On Wed, Jun 17, 2009 at 9:52 PM, recursion wrote:
>
> Thank you for the fast and accurate answer! I appreciate it :)
> --
> View this message in context: 
> http://www.nabble.com/Logging-flexability-and-pluggability-in-OpenEJB-%2B-HOWL-tp24073395p24079805.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>



-- 

Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: suggestion for defining local ref name for session beans

2009-09-13 Thread Mohammad Nour El-Din
Hi Mohammad Nourouzi...

  Seems that we almost have the same name ;). Well I think you are
missing things up here. The @EJB you are defining here are for
dependency injection (DI) so the container knows that you are
requiring this EJB to be injected into your class which
defined/declared this DI point. If using this way it not good for you
you still can lookup EJB explicitly using either:

1- The new lookup method in the EJB's context class.
2- By initializing a naming context and using the lookup method.

On Sun, Sep 13, 2009 at 6:01 AM, is_maximum  wrote:
>
> Hello
> I have a session bean which is an entry point for calling a number of other
> session beans.
> Because this entry bean doesn't know which stateless should be called at
> runtime we need to lookup them. in order to lookup EJBs we must declare @EJB
> on this entry session bean. that is, more than 20 @EJB should be declared
> for a class. This is not readable and also very bad-styled.
>
> Why not this local-ref name define in @Stateless annotation as an attribute
> say "refName" so each session bean has declared its own local reference name
> and we can lookup them any where in application locally
>
>
>
> -
> --
> Regards
>
> Mohammad Norouzi
>
> Help each other to reach the future faster
>
> http://pixelshot.wordpress.com Pixelshot Photoblog
>
> http://brainable.blogspot.com Brainable Blog
>
>
> --
> View this message in context: 
> http://www.nabble.com/suggestion-for-defining-local-ref-name-for-session-beans-tp25420391p25420391.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>
>



-- 
Thanks
- Mohammad Nour
- LinkedIn: http://www.linkedin.com/in/mnour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: building OpenEJB fails

2010-09-20 Thread Mohammad Nour El-Din
Hi Joe...

   If you are not interested to have all tests completed successfully,
you can run Maven with these options:

1) -Dmaven.test.failure.ignore
This one will allow you to see the failures but it will not fails
the build process.

2) -Dmaven.test.skip
This will by-pass running tests during build process.

On Mon, Sep 20, 2010 at 7:06 PM, joe  wrote:
> Hi,
>
> Today i checked out OpenEJB from
> http://svn.apache.org/repos/asf/openejb/trunk/openejb3
> and tried to build it.
>
> Tests run: 3356, Failures: 1, Errors: 0, Skipped: 0
>
>
> The following test failed:
>
> ---
> Test set: org.apache.openejb.core.stateless.StatelessPoolStatsTest
> ---
> Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.379 sec
> <<< FAILURE!
> testSweeps(org.apache.openejb.core.stateless.StatelessPoolStatsTest) Time
> elapsed: 0.021 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: null
>        at junit.framework.Assert.fail(Assert.java:47)
>        at junit.framework.Assert.assertTrue(Assert.java:20)
>        at junit.framework.Assert.assertTrue(Assert.java:27)
>        at
> org.apache.openejb.core.stateless.StatelessPoolStatsTest.testSweeps(StatelessPoolStatsTest.java:461)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at junit.framework.TestCase.runTest(TestCase.java:168)
>        at junit.framework.TestCase.runBare(TestCase.java:134)
>        at junit.framework.TestResult$1.protect(TestResult.java:110)
>        at junit.framework.TestResult.runProtected(TestResult.java:128)
>        at junit.framework.TestResult.run(TestResult.java:113)
>        at junit.framework.TestCase.run(TestCase.java:124)
>        at junit.framework.TestSuite.runTest(TestSuite.java:232)
>        at junit.framework.TestSuite.run(TestSuite.java:227)
>        at
> org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)
>        at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:140)
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:109)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>        at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1017)
>



-- 
Thanks
- Mohammad Nour
  Author of (WebSphere Application Server Community Edition 2.0 User Guide)
  http://www.redbooks.ibm.com/abstracts/sg247585.html
- LinkedIn: http://www.linkedin.com/in/mnour
- Blog: http://tadabborat.blogspot.com

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein

"Writing clean code is what you must do in order to call yourself a
professional. There is no reasonable excuse for doing anything less
than your best."
- Clean Code: A Handbook of Agile Software Craftsmanship

"Stay hungry, stay foolish."
- Steve Jobs


Re: building OpenEJB fails

2010-09-21 Thread Mohammad Nour El-Din
Yeah thats right, sorry forgot to tell you about that, most probably
you are building on Windows, right ?

On Tue, Sep 21, 2010 at 1:08 PM, joe  wrote:
>
>> 1) -Dmaven.test.failure.ignore
>>     This one will allow you to see the failures but it will not fails
>> the build process.
>
> Ah ok, thx.
>
>> 2) -Dmaven.test.skip
>>     This will by-pass running tests during build process.
>
> Trying this, i got a „java.lang.OutOfMemoryError: PermGen space”.
> After doing a:
> set MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M"
>
> this also works fine.
>



-- 
Thanks
- Mohammad Nour
  Author of (WebSphere Application Server Community Edition 2.0 User Guide)
  http://www.redbooks.ibm.com/abstracts/sg247585.html
- LinkedIn: http://www.linkedin.com/in/mnour
- Blog: http://tadabborat.blogspot.com

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein

"Writing clean code is what you must do in order to call yourself a
professional. There is no reasonable excuse for doing anything less
than your best."
- Clean Code: A Handbook of Agile Software Craftsmanship

"Stay hungry, stay foolish."
- Steve Jobs


Re: building OpenEJB fails

2010-09-22 Thread Mohammad Nour El-Din
No problem Joe, I just knew that cause I faced the same problem before :).

On Tue, Sep 21, 2010 at 6:23 PM, joe  wrote:
>
>> Yeah thats right, sorry forgot to tell you about that, most probably
>> you are building on Windows, right ?
>
> Yes Windows, but i swear no .NET stuff. ;)
> http://www.youtube.com/watch?v=13A0_QkqtaQ
>



-- 
Thanks
- Mohammad Nour
  Author of (WebSphere Application Server Community Edition 2.0 User Guide)
  http://www.redbooks.ibm.com/abstracts/sg247585.html
- LinkedIn: http://www.linkedin.com/in/mnour
- Blog: http://tadabborat.blogspot.com

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein

"Writing clean code is what you must do in order to call yourself a
professional. There is no reasonable excuse for doing anything less
than your best."
- Clean Code: A Handbook of Agile Software Craftsmanship

"Stay hungry, stay foolish."
- Steve Jobs


Re: OpenEJB Embeeded Progress Monitor

2011-11-09 Thread Mohammad Nour El-Din
I believe having a log handler would one solution and also it would be
configurable, this log handler can send these events to whatever
destination which developers can use as a more easier a nicer way than
parsing log messages.

Thoughts ?

On Wed, Nov 9, 2011 at 8:48 PM, Romain Manni-Bucau wrote:

> i understand we can to add event but for this problem i wonder if they will
> be relevant
>
> but we can generalize the question for sure!
>
> - Romain
>
>
> 2011/11/9 David Blevins 
>
> >
> > On Nov 9, 2011, at 9:06 AM, Romain Manni-Bucau wrote:
> >
> > > yep i understand,
> > >
> > > however it is hard to know before starting how many beans are "to
> > deploy".
> > >
> > > we could do something like: send an event when we know everything,
> send a
> > > event by bean...but i think it will have performance issues and i'm not
> > > sure it is exactly what you want since the first phase will probably be
> > as
> > > longer as the second.
> >
> > CDI events come to mind.  There are a few places in our code I was
> > thinking CDI events might be nice.  The multicast/multipoint "node added"
> > and "node removed" events were rolling around my brain last week.
> >
> > How to pull that off isn't exactly clear, but it's certainly an
> > interesting itch to scratch.
> >
> > -David
> >
> >
>



-- 
Thanks
- Mohammad Nour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: OpenEJB Embeeded Progress Monitor

2011-11-09 Thread Mohammad Nour El-Din
On Wed, Nov 9, 2011 at 9:42 PM, Romain Manni-Bucau wrote:

> yep a custom log4j appender is probably enough to follow logs.
>
> but with version 1 we should add event/logs to be complete.
>

Sorry didn't get that part :) ?


>
> - Romain
>
>
> 2011/11/9 Mohammad Nour El-Din 
>
> > I believe having a log handler would one solution and also it would be
> > configurable, this log handler can send these events to whatever
> > destination which developers can use as a more easier a nicer way than
> > parsing log messages.
> >
> > Thoughts ?
> >
> > On Wed, Nov 9, 2011 at 8:48 PM, Romain Manni-Bucau <
> rmannibu...@gmail.com
> > >wrote:
> >
> > > i understand we can to add event but for this problem i wonder if they
> > will
> > > be relevant
> > >
> > > but we can generalize the question for sure!
> > >
> > > - Romain
> > >
> > >
> > > 2011/11/9 David Blevins 
> > >
> > > >
> > > > On Nov 9, 2011, at 9:06 AM, Romain Manni-Bucau wrote:
> > > >
> > > > > yep i understand,
> > > > >
> > > > > however it is hard to know before starting how many beans are "to
> > > > deploy".
> > > > >
> > > > > we could do something like: send an event when we know everything,
> > > send a
> > > > > event by bean...but i think it will have performance issues and i'm
> > not
> > > > > sure it is exactly what you want since the first phase will
> probably
> > be
> > > > as
> > > > > longer as the second.
> > > >
> > > > CDI events come to mind.  There are a few places in our code I was
> > > > thinking CDI events might be nice.  The multicast/multipoint "node
> > added"
> > > > and "node removed" events were rolling around my brain last week.
> > > >
> > > > How to pull that off isn't exactly clear, but it's certainly an
> > > > interesting itch to scratch.
> > > >
> > > > -David
> > > >
> > > >
> > >
> >
> >
> >
> > --
> > Thanks
> > - Mohammad Nour
> > 
> > "Life is like riding a bicycle. To keep your balance you must keep
> moving"
> > - Albert Einstein
> >
>



-- 
Thanks
- Mohammad Nour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein


Re: OpenEJB vs JBoss

2012-03-15 Thread Mohammad Nour El-Din
Hi

On Thu, Mar 15, 2012 at 10:18 PM, Anthony Fryer  wrote:

> i come from a weblogic background having used it for years. Now days i much
> much prefer openejb/tomee. Other ejb containers are memory pigs by
> comparison, have slow boot times and are impossible to embed and use for
> unit testing. They do have more fully featured admin consoles and
> docUmentation though but i can live without that.  I have been using tomee
> in production for over a year now and am happy with the performance and
> reliability but more importantly, happy that i can run it on a debian linux
> virtual server with only 512mb of ram and have 130mb free. i couldnt even
> boot up empty instances of other containers on my server without running
> out
> of memory and that includes jboss and glassfish.  Openejb and the much
> improved ejb3 spec should regain ground lost to spring during the days of
> ejb2 and fat containers.
>

Well said about the ground lost for Spring :)


But David asked a question in this thread which is actually very important
from different users as a feedback:

- What features users would like to have besides OEJB being lightweight and
easy to use in different modes ?

I am really interested to know that from users out there.


>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/ejb-from-ws-tp4470387p4476450.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>



-- 
Thanks
- Mohammad Nour

"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein