You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Mattias Malmgren <ma...@freefarm.se> on 2006/09/28 12:00:05 UTC

Hopeless

Hi all

This is hopeless. I am about to give up, I need small working examples. It 
is impossible to guess all difrent configurations needed in all the 
deploymentdescriptors. I have no idea about what to read to get an 
understanding of this. I have browsed through documentation and read 
maililists archives. But nothing seams to bring calrity to this geronimo 
CMP mysterium.

I tryed to modify the bank-example but I just cant get it to work.

Please help! Post som small working examples of CMP EJB!

// Mattias



Re: Hopeless

Posted by Lasantha Ranaweera <la...@opensource.lk>.
Hi Mattias,

Can you post your configuration files to the user list? Then we can help 
you to figure out your problems. We will go with MySQL :-) .

Thanks,
Lasantha Ranaweera
Mattias Malmgren wrote:
> Hi again,
>
> Sorry for last post, I accidently hit ctrl-e trying to write E and 
> that sends emails in Eudora, the mail client I am using.
>
> Basically, I cant get the deploymentdescriptors right. At least that 
> is what I think is wrong. If you deploy my EJB.jar only, it deplys 
> fine, but when I add the war to the EAR deployment fails with a 
> java.lang.NullPointerException at 
> java.util.Hashtable.put(Hashtable.java:393)
>
> My application compiles just fine. I am sure this error is caused by 
> errors in the deployment descriptors.
>
> I'll stop whineing for a while now and give it a new try. This time I 
> will try using the build in derby database first instead of mysql and 
> see if that helps. I'll be back...
>
> // Mattias
>
> At 13:01 2006-09-28, you wrote:
>> Hi Mattias,
>>
>> You may want to look at the source code of the DayTrader application
>> as it uses some CMP (http://svn.apache.org/repos/asf/geronimo/ 
>> daytrader/trunk/). As this application is rather large, you may also
>> want to have a look at these isolated CMP examples: ejb-jar.xml and
>> openejb-jar.xml - http://tinyurl.com/k4myx; and CMP sources - http:// 
>> tinyurl.com/gga5x.
>>
>> Also, what are the issues that you are facing?
>>
>> Thanks,
>> Gianny
>>
>> On 28/09/2006, at 8:21 PM, Mattias Malmgren wrote:
>>
>>> Hi
>>>
>>> Yes, momst of my work is based on
>>> http://cwiki.apache.org/GMOxDOC11/ejb-sample-application.html
>>>
>>> So far I have bean abel to get a sessionbean working, but CMP EJB
>>> seams to be more difficult.
>>>
>>> Lets make a super simple example using a phone-book as an example.
>>> A table like this:
>>> create table phonebook (name varchar(15), number varchar(15));
>>> insert into phonebook values ('Mattias', '1234');
>>> insert into phonebook values ('Jacek','5678');
>>>
>>> Now lets make a CMP EJB and a JSP page calling the EJB from where
>>> you can search for names and get numbers back.
>>>
>>> If I hade a working example of that, including ejb-jar.xml openejb- 
>>> jar.xml, geronimo-application.xml and mysql-pool.xml or what ever
>>> other xml-files needed, I think I could make the rest of my way and
>>> go on buld the applications that I realy whant to do.
>>>
>>> Mattias
>>>
>>>
>>> At 12:08 2006-09-28, you wrote:
>>>> On 9/28/06, Mattias Malmgren <ma...@freefarm.se> wrote:
>>>>
>>>>> Please help! Post som small working examples of CMP EJB!
>>>>
>>>> I don't have it atm, but would like to prepare something exciting for
>>>> the coming JAOO conference in Aarhus in Denmark
>>>> (http://www.jaoo.dk/conference/) and your idea seem to be very
>>>> appealing. Could you describe what you're looking for? What EAR would
>>>> be of interest to you? What configuration would be of help to you?
>>>>
>>>> By the way, have you taken a look at
>>>> http://cwiki.apache.org/GMOxDOC11/sample-applications.html?
>>>>
>>>> Jacek
>>>>
>>>> -- 
>>>> Jacek Laskowski
>>>> http://www.laskowski.net.pl
>>>
>
>
>


Re: Hopeless

Posted by Mattias Malmgren <ma...@freefarm.se>.
Hi again,

Sorry for last post, I accidently hit ctrl-e trying to write E and that 
sends emails in Eudora, the mail client I am using.

Basically, I cant get the deploymentdescriptors right. At least that is 
what I think is wrong. If you deploy my EJB.jar only, it deplys fine, but 
when I add the war to the EAR deployment fails with a 
java.lang.NullPointerException at  java.util.Hashtable.put(Hashtable.java:393)

My application compiles just fine. I am sure this error is caused by errors 
in the deployment descriptors.

I'll stop whineing for a while now and give it a new try. This time I will 
try using the build in derby database first instead of mysql and see if 
that helps. I'll be back...

// Mattias

At 13:01 2006-09-28, you wrote:
>Hi Mattias,
>
>You may want to look at the source code of the DayTrader application
>as it uses some CMP (http://svn.apache.org/repos/asf/geronimo/ 
>daytrader/trunk/). As this application is rather large, you may also
>want to have a look at these isolated CMP examples: ejb-jar.xml and
>openejb-jar.xml - http://tinyurl.com/k4myx; and CMP sources - http:// 
>tinyurl.com/gga5x.
>
>Also, what are the issues that you are facing?
>
>Thanks,
>Gianny
>
>On 28/09/2006, at 8:21 PM, Mattias Malmgren wrote:
>
>>Hi
>>
>>Yes, momst of my work is based on
>>http://cwiki.apache.org/GMOxDOC11/ejb-sample-application.html
>>
>>So far I have bean abel to get a sessionbean working, but CMP EJB
>>seams to be more difficult.
>>
>>Lets make a super simple example using a phone-book as an example.
>>A table like this:
>>create table phonebook (name varchar(15), number varchar(15));
>>insert into  phonebook values ('Mattias', '1234');
>>insert into phonebook values ('Jacek','5678');
>>
>>Now lets make a CMP EJB and a JSP page calling the EJB from where
>>you can search for names and get numbers back.
>>
>>If I hade a working example of that, including ejb-jar.xml openejb- 
>>jar.xml, geronimo-application.xml and mysql-pool.xml or what ever
>>other xml-files needed, I think I could make the rest of my way and
>>go on buld the applications that I realy whant to do.
>>
>>Mattias
>>
>>
>>At 12:08 2006-09-28, you wrote:
>>>On 9/28/06, Mattias Malmgren <ma...@freefarm.se> wrote:
>>>
>>>>Please help! Post som small working examples of CMP EJB!
>>>
>>>I don't have it atm, but would like to prepare something exciting for
>>>the coming JAOO conference in Aarhus in Denmark
>>>(http://www.jaoo.dk/conference/) and your idea seem to be very
>>>appealing. Could you describe what you're looking for? What EAR would
>>>be of interest to you? What configuration would be of help to you?
>>>
>>>By the way, have you taken a look at
>>>http://cwiki.apache.org/GMOxDOC11/sample-applications.html?
>>>
>>>Jacek
>>>
>>>--
>>>Jacek Laskowski
>>>http://www.laskowski.net.pl
>>



Re: Hopeless

Posted by Mattias Malmgren <ma...@freefarm.se>.
Hi

Basically, I cant get the deploymentdescriptors right. At least that is 
what I think is wrong. If you deploy my EJB.jar only, it deplys fine, but 
when I add the war to the

My application compilse just fine.


At 13:01 2006-09-28, you wrote:
>Hi Mattias,
>
>You may want to look at the source code of the DayTrader application
>as it uses some CMP (http://svn.apache.org/repos/asf/geronimo/ 
>daytrader/trunk/). As this application is rather large, you may also
>want to have a look at these isolated CMP examples: ejb-jar.xml and
>openejb-jar.xml - http://tinyurl.com/k4myx; and CMP sources - http:// 
>tinyurl.com/gga5x.
>
>Also, what are the issues that you are facing?
>
>Thanks,
>Gianny
>
>On 28/09/2006, at 8:21 PM, Mattias Malmgren wrote:
>
>>Hi
>>
>>Yes, momst of my work is based on
>>http://cwiki.apache.org/GMOxDOC11/ejb-sample-application.html
>>
>>So far I have bean abel to get a sessionbean working, but CMP EJB
>>seams to be more difficult.
>>
>>Lets make a super simple example using a phone-book as an example.
>>A table like this:
>>create table phonebook (name varchar(15), number varchar(15));
>>insert into  phonebook values ('Mattias', '1234');
>>insert into phonebook values ('Jacek','5678');
>>
>>Now lets make a CMP EJB and a JSP page calling the EJB from where
>>you can search for names and get numbers back.
>>
>>If I hade a working example of that, including ejb-jar.xml openejb- 
>>jar.xml, geronimo-application.xml and mysql-pool.xml or what ever
>>other xml-files needed, I think I could make the rest of my way and
>>go on buld the applications that I realy whant to do.
>>
>>Mattias
>>
>>
>>At 12:08 2006-09-28, you wrote:
>>>On 9/28/06, Mattias Malmgren <ma...@freefarm.se> wrote:
>>>
>>>>Please help! Post som small working examples of CMP EJB!
>>>
>>>I don't have it atm, but would like to prepare something exciting for
>>>the coming JAOO conference in Aarhus in Denmark
>>>(http://www.jaoo.dk/conference/) and your idea seem to be very
>>>appealing. Could you describe what you're looking for? What EAR would
>>>be of interest to you? What configuration would be of help to you?
>>>
>>>By the way, have you taken a look at
>>>http://cwiki.apache.org/GMOxDOC11/sample-applications.html?
>>>
>>>Jacek
>>>
>>>--
>>>Jacek Laskowski
>>>http://www.laskowski.net.pl
>>



Re: Hopeless

Posted by Gianny Damour <gi...@optusnet.com.au>.
Hi Mattias,

You may want to look at the source code of the DayTrader application  
as it uses some CMP (http://svn.apache.org/repos/asf/geronimo/ 
daytrader/trunk/). As this application is rather large, you may also  
want to have a look at these isolated CMP examples: ejb-jar.xml and  
openejb-jar.xml - http://tinyurl.com/k4myx; and CMP sources - http:// 
tinyurl.com/gga5x.

Also, what are the issues that you are facing?

Thanks,
Gianny

On 28/09/2006, at 8:21 PM, Mattias Malmgren wrote:

> Hi
>
> Yes, momst of my work is based on
> http://cwiki.apache.org/GMOxDOC11/ejb-sample-application.html
>
> So far I have bean abel to get a sessionbean working, but CMP EJB  
> seams to be more difficult.
>
> Lets make a super simple example using a phone-book as an example.  
> A table like this:
> create table phonebook (name varchar(15), number varchar(15));
> insert into  phonebook values ('Mattias', '1234');
> insert into phonebook values ('Jacek','5678');
>
> Now lets make a CMP EJB and a JSP page calling the EJB from where  
> you can search for names and get numbers back.
>
> If I hade a working example of that, including ejb-jar.xml openejb- 
> jar.xml, geronimo-application.xml and mysql-pool.xml or what ever  
> other xml-files needed, I think I could make the rest of my way and  
> go on buld the applications that I realy whant to do.
>
> Mattias
>
>
> At 12:08 2006-09-28, you wrote:
>> On 9/28/06, Mattias Malmgren <ma...@freefarm.se> wrote:
>>
>>> Please help! Post som small working examples of CMP EJB!
>>
>> I don't have it atm, but would like to prepare something exciting for
>> the coming JAOO conference in Aarhus in Denmark
>> (http://www.jaoo.dk/conference/) and your idea seem to be very
>> appealing. Could you describe what you're looking for? What EAR would
>> be of interest to you? What configuration would be of help to you?
>>
>> By the way, have you taken a look at
>> http://cwiki.apache.org/GMOxDOC11/sample-applications.html?
>>
>> Jacek
>>
>> --
>> Jacek Laskowski
>> http://www.laskowski.net.pl
>
>


Re: Hopeless

Posted by Mattias Malmgren <ma...@freefarm.se>.
Hi

Yes, momst of my work is based on
http://cwiki.apache.org/GMOxDOC11/ejb-sample-application.html

So far I have bean abel to get a sessionbean working, but CMP EJB seams to 
be more difficult.

Lets make a super simple example using a phone-book as an example. A table 
like this:
create table phonebook (name varchar(15), number varchar(15));
insert into  phonebook values ('Mattias', '1234');
insert into phonebook values ('Jacek','5678');

Now lets make a CMP EJB and a JSP page calling the EJB from where you can 
search for names and get numbers back.

If I hade a working example of that, including ejb-jar.xml openejb-jar.xml, 
geronimo-application.xml and mysql-pool.xml or what ever other xml-files 
needed, I think I could make the rest of my way and go on buld the 
applications that I realy whant to do.

Mattias


At 12:08 2006-09-28, you wrote:
>On 9/28/06, Mattias Malmgren <ma...@freefarm.se> wrote:
>
>>Please help! Post som small working examples of CMP EJB!
>
>I don't have it atm, but would like to prepare something exciting for
>the coming JAOO conference in Aarhus in Denmark
>(http://www.jaoo.dk/conference/) and your idea seem to be very
>appealing. Could you describe what you're looking for? What EAR would
>be of interest to you? What configuration would be of help to you?
>
>By the way, have you taken a look at
>http://cwiki.apache.org/GMOxDOC11/sample-applications.html?
>
>Jacek
>
>--
>Jacek Laskowski
>http://www.laskowski.net.pl



Re: Hopeless

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 9/28/06, Mattias Malmgren <ma...@freefarm.se> wrote:

> Please help! Post som small working examples of CMP EJB!

I don't have it atm, but would like to prepare something exciting for
the coming JAOO conference in Aarhus in Denmark
(http://www.jaoo.dk/conference/) and your idea seem to be very
appealing. Could you describe what you're looking for? What EAR would
be of interest to you? What configuration would be of help to you?

By the way, have you taken a look at
http://cwiki.apache.org/GMOxDOC11/sample-applications.html?

Jacek

-- 
Jacek Laskowski
http://www.laskowski.net.pl