You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Ashish Jain <as...@gmail.com> on 2008/03/18 20:43:14 UTC
How to make a contribution to the community
Hi All,
I am interested in contributing to the community and there by learning more
of EJB3. I am a newbie and I need help to start my contribution to the
community.
Thanks
Ashish
Re: How to make a contribution to the community
Posted by Ashish Jain <as...@gmail.com>.
Hi Manu,
Apologies for delay in reply. Yes I have started looking on to the spec and
will come up with test cases soon.
Thanks
Ashish
On Mon, Mar 31, 2008 at 5:01 PM, Manu George <ma...@gmail.com>
wrote:
> Hi Ashish,
> I know that my reply is very late but once you are
> comfortable with building OpenEJB running the samples and debugging
> in eclipse a nice way to start will be to write some unit tests. There
> are some tests still to be written .
>
> http://issues.apache.org/jira/browse/OPENEJB-142 is the jira with all
> the tests. Mohammad and myself started our contributions to OpenEJB by
> writing tests and it will really help you in understanding the spec
> better :).
>
> Regards
> Manu
>
> On Thu, Mar 20, 2008 at 11:42 PM, Ashish Jain <as...@gmail.com> wrote:
> > HI Jacek,
> > I just found out the class that has the error, Trying to setup my
> eclipse
> > development environment to have a look at the code.
> >
> > Thanks
> > Ashish
> >
> > On Thu, Mar 20, 2008 at 10:30 PM, Jacek Laskowski <
> jacek@laskowski.net.pl>
> > wrote:
> >
> >
> >
> > > On Thu, Mar 20, 2008 at 5:47 PM, Ashish Jain <as...@gmail.com>
> wrote:
> > >
> > > > I was able to successfully run the build this time but I escaped
> all the
> > > > tests. Is that the correct way of building openEjb?
> > >
> > > No as you're (about to be) a openejb developer than a mere user. If
> > > the tests fail we should fix it right now. I had to publish
> > > openejb-tomcat-* artifacts to build openejb with a clean repo until
> it
> > > failed with the known issue in openejb-ejbd module.
> > >
> > > Jacek
> > >
> > > --
> > > Jacek Laskowski
> > > http://www.JacekLaskowski.pl
> > >
> >
>
Re: How to make a contribution to the community
Posted by Manu George <ma...@gmail.com>.
Hi Ashish,
I know that my reply is very late but once you are
comfortable with building OpenEJB running the samples and debugging
in eclipse a nice way to start will be to write some unit tests. There
are some tests still to be written .
http://issues.apache.org/jira/browse/OPENEJB-142 is the jira with all
the tests. Mohammad and myself started our contributions to OpenEJB by
writing tests and it will really help you in understanding the spec
better :).
Regards
Manu
On Thu, Mar 20, 2008 at 11:42 PM, Ashish Jain <as...@gmail.com> wrote:
> HI Jacek,
> I just found out the class that has the error, Trying to setup my eclipse
> development environment to have a look at the code.
>
> Thanks
> Ashish
>
> On Thu, Mar 20, 2008 at 10:30 PM, Jacek Laskowski <ja...@laskowski.net.pl>
> wrote:
>
>
>
> > On Thu, Mar 20, 2008 at 5:47 PM, Ashish Jain <as...@gmail.com> wrote:
> >
> > > I was able to successfully run the build this time but I escaped all the
> > > tests. Is that the correct way of building openEjb?
> >
> > No as you're (about to be) a openejb developer than a mere user. If
> > the tests fail we should fix it right now. I had to publish
> > openejb-tomcat-* artifacts to build openejb with a clean repo until it
> > failed with the known issue in openejb-ejbd module.
> >
> > Jacek
> >
> > --
> > Jacek Laskowski
> > http://www.JacekLaskowski.pl
> >
>
Re: How to make a contribution to the community
Posted by Ashish Jain <as...@gmail.com>.
HI Jacek,
I just found out the class that has the error, Trying to setup my eclipse
development environment to have a look at the code.
Thanks
Ashish
On Thu, Mar 20, 2008 at 10:30 PM, Jacek Laskowski <ja...@laskowski.net.pl>
wrote:
> On Thu, Mar 20, 2008 at 5:47 PM, Ashish Jain <as...@gmail.com> wrote:
>
> > I was able to successfully run the build this time but I escaped all the
> > tests. Is that the correct way of building openEjb?
>
> No as you're (about to be) a openejb developer than a mere user. If
> the tests fail we should fix it right now. I had to publish
> openejb-tomcat-* artifacts to build openejb with a clean repo until it
> failed with the known issue in openejb-ejbd module.
>
> Jacek
>
> --
> Jacek Laskowski
> http://www.JacekLaskowski.pl
>
Re: How to make a contribution to the community
Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Thu, Mar 20, 2008 at 5:47 PM, Ashish Jain <as...@gmail.com> wrote:
> I was able to successfully run the build this time but I escaped all the
> tests. Is that the correct way of building openEjb?
No as you're (about to be) a openejb developer than a mere user. If
the tests fail we should fix it right now. I had to publish
openejb-tomcat-* artifacts to build openejb with a clean repo until it
failed with the known issue in openejb-ejbd module.
Jacek
--
Jacek Laskowski
http://www.JacekLaskowski.pl
Re: How to make a contribution to the community
Posted by Ashish Jain <as...@gmail.com>.
Hi Jacek,
I was able to successfully run the build this time but I escaped all the
tests. Is that the correct way of building openEjb?
Karan,
Thanks for your reply! I will soon start my work on this.
Thanks
Ashish
On Thu, Mar 20, 2008 at 7:11 AM, Karan Malhi <ka...@gmail.com> wrote:
> Hey Ashish,
>
> Another thing could be if you could try deploying some ejb jars in openejb
> and suggest some improvements. You can see this page (
> http://openejb.apache.org/3.0/deploy-tool.html) for instructions on how to
> deploy. Also try to undeploy an already deployed jar and let us know what
> you think about that functionality, would you like to see anything in this
> area. If you are able to find some bugs, or something which is not
> intuitive, feel free to report that. During deploy, OpenEjb validates the
> ejb jar and gives some nice suggestions if it finds something wrong within
> the jar. So, if you did accidentally make a mistake in your jar (e.g.
> forgot
> to use an annotation where required, or used an annotation in the wrong
> location etc), OpenEJB will catch that mistake during deployment. If you
> could just take a note of such mistakes and share with us, that would be
> great. I am trying to accumulate a list of 5 most common errors during
> development (10 would be great).
>
> You can also try commands listed here (
> http://openejb.apache.org/3.0/startup.html) and see if you can find
> something not working properly.
>
> Feel free to post questions on the list.
>
> Thanks for your help!
>
> On Wed, Mar 19, 2008 at 7:08 PM, Karan Malhi <ka...@gmail.com>
> wrote:
>
> > Just ran it on win xp with all the tests. Everything passed
> successfully.
> >
> > On Wed, Mar 19, 2008 at 5:36 PM, Jacek Laskowski <jacek@laskowski.net.pl
> >
> > wrote:
> >
> > > On Wed, Mar 19, 2008 at 6:29 PM, Ashish Jain <as...@gmail.com>
> wrote:
> > >
> > > > Please refer to
> C:\OpenEjb\server\openejb-ejbd\target\surefire-reports
> > > for
> > > > the i
> > > > ndividual test results.
> > > > [INFO]
> > > >
> > >
> ------------------------------------------------------------------------
> > > > [INFO] For more information, run Maven with the -e switch
> > > > [INFO]
> > > >
> > >
> ------------------------------------------------------------------------
> > > > [INFO] Total time: 83 minutes 39 seconds
> > > > [INFO] Finished at: Wed Mar 19 18:55:28 IST 2008
> > > > [INFO] Final Memory: 36M/99M
> > > > [INFO]
> > > >
> > >
> ------------------------------------------------------------------------
> > > >
> > > > How do I resolve this error?
> > >
> > > I couldn't figure that out yet. That's your first task ;-) Seriously,
> > > I have not given it much thought and it occurs on WinXP. Nice, you're
> > > on WinXP and could confirm.
> > >
> > > Jacek
> > >
> > > --
> > > Jacek Laskowski
> > > http://www.JacekLaskowski.pl <http://www.jaceklaskowski.pl/>
> > >
> >
> >
> >
> > --
> > Karan Singh Malhi
>
>
>
>
> --
> Karan Singh Malhi
>
Re: How to make a contribution to the community
Posted by Karan Malhi <ka...@gmail.com>.
Hey Ashish,
Another thing could be if you could try deploying some ejb jars in openejb
and suggest some improvements. You can see this page (
http://openejb.apache.org/3.0/deploy-tool.html) for instructions on how to
deploy. Also try to undeploy an already deployed jar and let us know what
you think about that functionality, would you like to see anything in this
area. If you are able to find some bugs, or something which is not
intuitive, feel free to report that. During deploy, OpenEjb validates the
ejb jar and gives some nice suggestions if it finds something wrong within
the jar. So, if you did accidentally make a mistake in your jar (e.g. forgot
to use an annotation where required, or used an annotation in the wrong
location etc), OpenEJB will catch that mistake during deployment. If you
could just take a note of such mistakes and share with us, that would be
great. I am trying to accumulate a list of 5 most common errors during
development (10 would be great).
You can also try commands listed here (
http://openejb.apache.org/3.0/startup.html) and see if you can find
something not working properly.
Feel free to post questions on the list.
Thanks for your help!
On Wed, Mar 19, 2008 at 7:08 PM, Karan Malhi <ka...@gmail.com> wrote:
> Just ran it on win xp with all the tests. Everything passed successfully.
>
> On Wed, Mar 19, 2008 at 5:36 PM, Jacek Laskowski <ja...@laskowski.net.pl>
> wrote:
>
> > On Wed, Mar 19, 2008 at 6:29 PM, Ashish Jain <as...@gmail.com> wrote:
> >
> > > Please refer to C:\OpenEjb\server\openejb-ejbd\target\surefire-reports
> > for
> > > the i
> > > ndividual test results.
> > > [INFO]
> > >
> > ------------------------------------------------------------------------
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO]
> > >
> > ------------------------------------------------------------------------
> > > [INFO] Total time: 83 minutes 39 seconds
> > > [INFO] Finished at: Wed Mar 19 18:55:28 IST 2008
> > > [INFO] Final Memory: 36M/99M
> > > [INFO]
> > >
> > ------------------------------------------------------------------------
> > >
> > > How do I resolve this error?
> >
> > I couldn't figure that out yet. That's your first task ;-) Seriously,
> > I have not given it much thought and it occurs on WinXP. Nice, you're
> > on WinXP and could confirm.
> >
> > Jacek
> >
> > --
> > Jacek Laskowski
> > http://www.JacekLaskowski.pl <http://www.jaceklaskowski.pl/>
> >
>
>
>
> --
> Karan Singh Malhi
--
Karan Singh Malhi
Re: How to make a contribution to the community
Posted by Karan Malhi <ka...@gmail.com>.
Just ran it on win xp with all the tests. Everything passed successfully.
On Wed, Mar 19, 2008 at 5:36 PM, Jacek Laskowski <ja...@laskowski.net.pl>
wrote:
> On Wed, Mar 19, 2008 at 6:29 PM, Ashish Jain <as...@gmail.com> wrote:
>
> > Please refer to C:\OpenEjb\server\openejb-ejbd\target\surefire-reports
> for
> > the i
> > ndividual test results.
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 83 minutes 39 seconds
> > [INFO] Finished at: Wed Mar 19 18:55:28 IST 2008
> > [INFO] Final Memory: 36M/99M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > How do I resolve this error?
>
> I couldn't figure that out yet. That's your first task ;-) Seriously,
> I have not given it much thought and it occurs on WinXP. Nice, you're
> on WinXP and could confirm.
>
> Jacek
>
> --
> Jacek Laskowski
> http://www.JacekLaskowski.pl <http://www.jaceklaskowski.pl/>
>
--
Karan Singh Malhi
Re: How to make a contribution to the community
Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Wed, Mar 19, 2008 at 6:29 PM, Ashish Jain <as...@gmail.com> wrote:
> Please refer to C:\OpenEjb\server\openejb-ejbd\target\surefire-reports for
> the i
> ndividual test results.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 83 minutes 39 seconds
> [INFO] Finished at: Wed Mar 19 18:55:28 IST 2008
> [INFO] Final Memory: 36M/99M
> [INFO]
> ------------------------------------------------------------------------
>
> How do I resolve this error?
I couldn't figure that out yet. That's your first task ;-) Seriously,
I have not given it much thought and it occurs on WinXP. Nice, you're
on WinXP and could confirm.
Jacek
--
Jacek Laskowski
http://www.JacekLaskowski.pl
Re: How to make a contribution to the community
Posted by Ashish Jain <as...@gmail.com>.
Hi Jacek,
As suggested by you, my build also failed on Windows XP while running the
test cases I guess, because I could see a message suggesting
*INFO - OpenEJB ready.
OpenEJB ready.*
Later running the test cases there was failures running the test cases. The
stacktrace for the error is as follows:
javax.naming.NamingException: Cannot lookup
'/client/tests/entity/bmp/BasicBmpHo
me'. [Root exception is java.rmi.RemoteException: Cannot read the response
from
the server (OEJP/2.0) : null; nested exception is:
java.io.EOFException]
at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java
:240)
at javax.naming.InitialContext.lookup(InitialContext.java:363)
at org.apache.openejb.test.entity.bmp.BmpEjbHomeTests.setUp
(BmpEjbHomeTe
sts.java:36)
at org.apache.openejb.test.NumberedTestCase.run(
NumberedTestCase.java:93
)
at org.apache.openejb.test.TestSuite.run(TestSuite.java:49)
at org.apache.openejb.test.TestSuite.run(TestSuite.java:49)
at org.junit.internal.runners.JUnit38ClassRunner.run
(JUnit38ClassRunner.
java:81)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute
(JUnit4TestSet.
java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.java:165)
at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:285)
at org.apache.maven.surefire.booter.SurefireBooter.main(
SurefireBooter.j
ava:976)
Caused by: java.rmi.RemoteException: Cannot read the response from the
server (O
EJP/2.0) : null; nested exception is:
java.io.EOFException
at org.apache.openejb.client.Client.processRequest(Client.java:172)
at org.apache.openejb.client.Client.request(Client.java:42)
at org.apache.openejb.client.JNDIContext.request(JNDIContext.java
:87)
at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java
:234)
... 16 more
Caused by: java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.readByte
(ObjectInputSt
ream.java:2690)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:890)
at org.apache.openejb.client.EJBMetaDataImpl.readExternal
(EJBMetaDataImp
l.java:172)
at org.apache.openejb.client.JNDIResponse.readExternal(
JNDIResponse.java
:86)
at org.apache.openejb.client.Client.processRequest(Client.java:167)
... 19 more
Tests run: 752, Failures: 5, Errors: 1, Skipped: 0, Time elapsed: 19.578 sec
<<<
FAILURE!
Results :
Failed tests:
Stateless.RMI_IIOP.returnEJBHomeArray(
org.apache.openejb.test.NumberedTestCase
$NamedTest)
Stateless.EJBObject.isIdentical_stateless(
org.apache.openejb.test.NumberedTest
Case$NamedTest)
Entity.BMP.HomeIntfc.findEmptyEnumeration(
org.apache.openejb.test.NumberedTest
Case$NamedTest)
Entity.BMP.JNDI_ENC.lookupStatelessBusinessLocal(
org.apache.openejb.test.Numbe
redTestCase$NamedTest)
Entity.BMP.RMI_IIOP.returnEJBMetaData(
org.apache.openejb.test.NumberedTestCase
$NamedTest)
Tests in error:
Entity.BMP.EJBHome..setUp()(
org.apache.openejb.test.NumberedTestCase$TestSetup
)
Tests run: 1499, Failures: 12, Errors: 4, Skipped: 0
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to C:\OpenEjb\server\openejb-ejbd\target\surefire-reports for
the i
ndividual test results.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 83 minutes 39 seconds
[INFO] Finished at: Wed Mar 19 18:55:28 IST 2008
[INFO] Final Memory: 36M/99M
[INFO]
------------------------------------------------------------------------
How do I resolve this error?
Thanks
Ashish
On Wed, Mar 19, 2008 at 3:47 PM, Ashish Jain <as...@gmail.com> wrote:
> I use Windows XP.
> Thanks
> Ashish
>
>
> On Wed, Mar 19, 2008 at 2:37 PM, Jacek Laskowski <ja...@laskowski.net.pl>
> wrote:
>
> > On Wed, Mar 19, 2008 at 9:18 AM, Ashish Jain <as...@gmail.com> wrote:
> > > Hi Jacek,
> > > Thanks for your reply. I will start with building the openejb
> > container and
> > > later with the execution of samples.
> >
> > What OS do you use? I keep having troubles with building openejb on
> > WinXP and can't figure out what's wrong.
> >
> > Jacek
> >
> > --
> > Jacek Laskowski
> > http://www.JacekLaskowski.pl
> >
>
>
Re: How to make a contribution to the community
Posted by Ashish Jain <as...@gmail.com>.
I use Windows XP.
Thanks
Ashish
On Wed, Mar 19, 2008 at 2:37 PM, Jacek Laskowski <ja...@laskowski.net.pl>
wrote:
> On Wed, Mar 19, 2008 at 9:18 AM, Ashish Jain <as...@gmail.com> wrote:
> > Hi Jacek,
> > Thanks for your reply. I will start with building the openejb container
> and
> > later with the execution of samples.
>
> What OS do you use? I keep having troubles with building openejb on
> WinXP and can't figure out what's wrong.
>
> Jacek
>
> --
> Jacek Laskowski
> http://www.JacekLaskowski.pl
>
Re: How to make a contribution to the community
Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Wed, Mar 19, 2008 at 9:18 AM, Ashish Jain <as...@gmail.com> wrote:
> Hi Jacek,
> Thanks for your reply. I will start with building the openejb container and
> later with the execution of samples.
What OS do you use? I keep having troubles with building openejb on
WinXP and can't figure out what's wrong.
Jacek
--
Jacek Laskowski
http://www.JacekLaskowski.pl
Re: How to make a contribution to the community
Posted by Ashish Jain <as...@gmail.com>.
Hi Jacek,
Thanks for your reply. I will start with building the openejb container and
later with the execution of samples.
Thanks
Ashish
On Wed, Mar 19, 2008 at 3:54 AM, Jacek Laskowski <ja...@laskowski.net.pl>
wrote:
> On Tue, Mar 18, 2008 at 8:43 PM, Ashish Jain <as...@gmail.com> wrote:
>
> > I am interested in contributing to the community and there by learning
> more
> > of EJB3. I am a newbie and I need help to start my contribution to the
> > community.
>
> Hi Ashish,
>
> There're a couple of ways to contribute that depend on your time
> constraints and knowledge of how open source, ejb3 and openejb work.
> Let's start simple with the samples. Could you check out the sources,
> build them and run the examples afterwards? I think it makes a good
> start.
>
> Thanks!
>
> Jacek
>
> --
> Jacek Laskowski
> http://www.JacekLaskowski.pl
>
Re: How to make a contribution to the community
Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Tue, Mar 18, 2008 at 8:43 PM, Ashish Jain <as...@gmail.com> wrote:
> I am interested in contributing to the community and there by learning more
> of EJB3. I am a newbie and I need help to start my contribution to the
> community.
Hi Ashish,
There're a couple of ways to contribute that depend on your time
constraints and knowledge of how open source, ejb3 and openejb work.
Let's start simple with the samples. Could you check out the sources,
build them and run the examples afterwards? I think it makes a good
start.
Thanks!
Jacek
--
Jacek Laskowski
http://www.JacekLaskowski.pl