The Source for Java Technology Collaboration
Webmaster Alert: Posting to Jive Forums is currently not working. Estimated time for fix is unknown.

Home » java.net Forums » GlassFish » GlassFish

Thread: can't assign glassfish prelude to enterprise application netbeans 6.5

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 17 - Last Post: Sep 26, 2008 1:13 PM by: vladperl
vladperl

Posts: 94
can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 22, 2008 12:18 PM
  Click to reply to this thread Reply

I'm using netbeans 6.5 nightly build (netbeans-trunk-nightly-200809220201) and I can't assign glassfish prelude as running server for my enterprise application and my EJB module.
Only for web module I'm able to assign glassfish prelude.
I'd like to know if that known bug or I do something wrong.
Glassfish Prelude registered in Netbeans and for new enterprise application I also have trouble to assign glassfish prelude.

Thanks

km

Posts: 698
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 23, 2008 12:27 PM   in response to: vladperl
  Click to reply to this thread Reply

Prelude does not support EJB's until the EJB module is downloaded from the update center using the GlassFish update-tool client.

If you have more issues contact peterwx@dev.java.net.

Regards,
Kedar

vladperl

Posts: 94
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 23, 2008 1:11 PM   in response to: km
  Click to reply to this thread Reply

> Prelude does not support EJB's until the EJB module
> is downloaded from the update center using the
> GlassFish update-tool client.
>
> If you have more issues contact
> peterwx@dev.java.net.

Thank you very much Kedar for your help.
Using glassfish admin console I tried to install EJB module but I got the following message:
"ErrorWarningSuccessInformationAn error has occurred
attempt to access a resource for an Fmri that has no authority: pkg:/glassfish-ejb@3.0,0-25:20080919T101133Z"

Anyway it's much easier now to get it done.
By the way I didn't expect that glassfish will treat EJB module as optional part.

Thank you,
Vladimir

km

Posts: 698
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 23, 2008 3:25 PM   in response to: vladperl
  Click to reply to this thread Reply

> Thank you very much Kedar for your help.
> Using glassfish admin console I tried to install EJB
> module but I got the following message:
> "ErrorWarningSuccessInformationAn error has occurred
> attempt to access a resource for an Fmri that has no
> authority:
> pkg:/glassfish-ejb@3.0,0-25:20080919T101133Z"
Yeah, according to Yifeng it is a known issue.
Sorry for the trouble.

>
> Anyway it's much easier now to get it done.
> By the way I didn't expect that glassfish will treat
> EJB module as optional part.

That's a good feedback. But Prelude is really about the base web distribution and everything possible should be added on top of it via update center. Would you have liked EJB in the base bundle itself instead? What are your download-size concerns? Or is that a myth? (Is it ok for us to make you download 35 MB instead of 25 MB?)

-Kedar

Marina Vatkina
Re: can't assign glassfish prelude to enterprise application netbeans
6.5

Posted: Sep 23, 2008 5:11 PM   in response to: km
  Click to reply to this thread Reply

glassfish@javadesktop.org wrote:
>> Thank you very much Kedar for your help.
>> Using glassfish admin console I tried to install EJB
>> module but I got the following message:
>> "ErrorWarningSuccessInformationAn error has occurred
>> attempt to access a resource for an Fmri that has no
>> authority:
>> pkg:/glassfish-ejb@3.0,0-25:20080919T101133Z"
>>
> Yeah, according to Yifeng it is a known issue.
> Sorry for the trouble.
>
>
>> Anyway it's much easier now to get it done.
>> By the way I didn't expect that glassfish will treat
>> EJB module as optional part.
>>
>
> That's a good feedback. But Prelude is really about the base web distribution and everything possible should be added on top of it via update center. Would you have liked EJB in the base bundle itself instead? What are your download-size concerns? Or is that a myth? (Is it ok for us to make you download 35 MB instead of 25 MB?)
>

It'll be bigger eventually. Count the size of CORBA and other
dependencies that will be required for complete EJB support.

Regards,
-marina
> -Kedar
> [Message sent by forum member 'km' (km)]
>
> http://forums.java.net/jive/thread.jspa?messageID=301151
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


vladperl

Posts: 94
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 24, 2008 7:37 AM   in response to: Marina Vatkina
  Click to reply to this thread Reply

> It'll be bigger eventually. Count the size of CORBA
> and other
> dependencies that will be required for complete EJB
> support.

Maybe it makes sense directly on download page to write something like this:
"Most of the modules for the Prelude Glassfish such as EJB Module you can get from Update Center. You can run Update Center from Admin Console."

Best Regards,
Vladimir

vladperl

Posts: 94
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 24, 2008 7:27 AM   in response to: km
  Click to reply to this thread Reply

> > Anyway it's much easier now to get it done.
> > By the way I didn't expect that glassfish will
> treat
> > EJB module as optional part.
>
> That's a good feedback. But Prelude is really about
> the base web distribution and everything possible
> should be added on top of it via update center. Would
> you have liked EJB in the base bundle itself instead?
> What are your download-size concerns? Or is that a
> myth? (Is it ok for us to make you download 35 MB
> instead of 25 MB?)

I didn't know that Prelude one of the main goals to be the base for web distribution.
I suppose that somebody from glassfish team should put article where to show that Prelude is very different animal comparing with previous Glassfish versions :)
Now it makes sense that Glassfish didn't include EJB Module.
For me doesn't matter the download size.
After excluding EJB Module from the bundle everybody will see clearly that Glassfish is not anymore traditional kind of Java EE Server. So keep the start bundle slim to prove the server doesn't have preferences between technologies that able to run on it.

After I added EJB Module to Prelude I still can't assign Prelude to my enterprise application or new enterprise application. So I will try to send related email to address that you provided.

I appreciate your help.

Vladimir

yifeng1

Posts: 6
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 23, 2008 1:27 PM   in response to: vladperl
  Click to reply to this thread Reply

the error you see is a known issue: 6178.

alternatively, pls use updatetool for download

sorry about inconvenience.

vladperl

Posts: 94
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 24, 2008 6:55 AM   in response to: yifeng1
  Click to reply to this thread Reply

> the error you see is a known issue: 6178.
>
> alternatively, pls use updatetool for download
>
> sorry about inconvenience.

First I tried to run update center from netbeans but wasn't able to install it because in prompt window I couldn't type anything. After I installed update tool using corresponding batch file from glassfish folder I was able to use update center directly from netbeans.
I'd like to say that update center indeed very useful tool and looks good :)

Thank you for advice!

rimartin7

Posts: 99
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 23, 2008 5:51 PM   in response to: vladperl
  Click to reply to this thread Reply

Hi,

You may like the series of articles by Reza Rahman
http://www.theserverside.com/tt/articles/article.tss?l=NewFeaturesinEJB3-1
http://www.theserverside.com/tt/articles/article.tss?l=NewFeaturesEJB31
http://www.theserverside.com/tt/articles/article.tss?l=NewFeaturesEJB31-3
http://www.theserverside.com/tt/articles/article.tss?l=NewFeaturesinEJB3-Part4

Part 2 in particular has illustrations of ejb 3.1 enterprise app being all in the war. The three projects ear/ejb-jar/war drop down to one war project(ejb 3.1 style). Also look at the templating under 'New File' category Persistence for "JPA Controller classes from Entity classes", "JSF pages from entity classes" etc.

This depending on what you want to achieve and if you are using jsf. These generate backing beans that connect all the way to jsf components in jsp pages which I then convert onward to facelets.

V3 doesn't take ear or ejb jars that I know of. The HelloEJB1 war is simplistic but a good test if the ejb module is working on V3.
http://blogs.sun.com/MaheshKannan/entry/ejb_3_1_in_glassfish

If you are working with JBI and composite apps you may want to get at the Felix(with fuji) and the Felix web console. It can show you the state of the components and help you add your own.(If interested I can point to more how-to)

Metro module will run webservices but I have yet to get it to play nice with the ejb module. Currently I have two different gfv3 setups for testing ejbs separate from web services.

rimartin7

Posts: 99
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 23, 2008 6:00 PM   in response to: rimartin7
  Click to reply to this thread Reply

Also you or anyone may want to run a

asadmin list-commands

to get which commands gfv3 supports and know which are relevant in reading the v3 documentation which is in transition from v2.
http://wiki.glassfish.java.net/Wiki.jsp?page=PlanForGlassFishV3

vladperl

Posts: 94
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 24, 2008 9:16 AM   in response to: rimartin7
  Click to reply to this thread Reply

> You may like the series of articles by Reza Rahman
> http://www.theserverside.com/tt/articles/article.tss?l
> =NewFeaturesinEJB3-1
> http://www.theserverside.com/tt/articles/article.tss?l
> =NewFeaturesEJB31
> http://www.theserverside.com/tt/articles/article.tss?l
> =NewFeaturesEJB31-3
> http://www.theserverside.com/tt/articles/article.tss?l
> =NewFeaturesinEJB3-Part4

Thank you very much for providing so much useful information.
But now I have some questions :)

Is it possible today start using EJB 3.1 with the last build of Glassfish Prelude?

> Part 2 in particular has illustrations of ejb 3.1
> enterprise app being all in the war. The three
> projects ear/ejb-jar/war drop down to one war
> project(ejb 3.1 style).

Do you believe that makes sense now to migrate to ejb 3.1 style of the project in such environment as netbeans?

>Also look at the templating
> under 'New File' category Persistence for "JPA
> Controller classes from Entity classes", "JSF pages
> from entity classes" etc.

I used that in netbeans 6.1 but maybe there are some improvements in version 6.5?

> This depending on what you want to achieve and if you
> are using jsf. These generate backing beans that
> connect all the way to jsf components in jsp pages
> which I then convert onward to facelets.

I'm using JSF in my applications but didn't use facelets yet. I'm going to start use facelets that included in JSF 2.0. By the way are you already using JSF 2.0?
Is it possible to start use in JSF 2.0 based application webbeans?

>
> V3 doesn't take ear or ejb jars that I know of.
Are you saying that V3 doesn't support traditional style of Enterprise Application at all?
If that so why nobody beside you told me clearly that I can't deploy EAR package to Glassfish Prelude. After writing the last sentence I went to admin console and tried to deploy EAR kind of application and looks like you right I can't do it! Before I was so sure that issue related to deploy Enterprise Application appears only inside Netbeans ;)
Definitely somebody should write about distinguish features between Prelude and Glassfish 2.

> If you are working with JBI and composite apps you
> may want to get at the Felix(with fuji) and the Felix
> web console. It can show you the state of the
> components and help you add your own.(If interested I
> can point to more how-to)

Thank you again for your information. For now I'm still in read mode for this topic.

>
> Metro module will run webservices but I have yet to
> get it to play nice with the ejb module. Currently I
> have two different gfv3 setups for testing ejbs
> separate from web services.

I'm not using Metro yet but already started to use web services in limited manner and very interesting in this topic.

Probably you would be interesting in reading this article:
http://developers.sun.com/appserver/reference/techart/cometslideshow.html

Best Regards,
Vladimir

Ludovic Champen...
Re: can't assign glassfish prelude to enterprise application netbeans
6.5

Posted: Sep 24, 2008 9:41 AM   in response to: vladperl
  Click to reply to this thread Reply

glassfish@javadesktop.org wrote:
>> You may like the series of articles by Reza Rahman
>> http://www.theserverside.com/tt/articles/article.tss?l
>> =NewFeaturesinEJB3-1
>> http://www.theserverside.com/tt/articles/article.tss?l
>> =NewFeaturesEJB31
>> http://www.theserverside.com/tt/articles/article.tss?l
>> =NewFeaturesEJB31-3
>> http://www.theserverside.com/tt/articles/article.tss?l
>> =NewFeaturesinEJB3-Part4
>>
>
> Thank you very much for providing so much useful information.
> But now I have some questions :)
>
> Is it possible today start using EJB 3.1 with the last build of Glassfish Prelude?
>
If you understand the limitations for Prelude:
1/ early access feature not complete via update center
2/ stateless beans and JPA sessions inside Web Apps, (no ear, or
ejbmodule yet)
3/ no MDB, stateful yet
4/ did I say not complete?
>
>> Part 2 in particular has illustrations of ejb 3.1
>> enterprise app being all in the war. The three
>> projects ear/ejb-jar/war drop down to one war
>> project(ejb 3.1 style).
>>
>
> Do you believe that makes sense now to migrate to ejb 3.1 style of the project in such environment as netbeans?
>
yes, but you cannot use the wizards to create ejbs since they do not
work for a web app. The good new is that a JPA or a stateless bean is so
simple to create you do not need a wizard, just a java pojo wizard is
enough and you add annotations..

>
>> Also look at the templating
>> under 'New File' category Persistence for "JPA
>> Controller classes from Entity classes", "JSF pages
>> from entity classes" etc.
>>
>
> I used that in netbeans 6.1 but maybe there are some improvements in version 6.5?
>
Some bug fixes.
The main stuff I LOVE in NetBeans 6.5 is JAX RS (JSR 311) RestFul
webservices from JPA wizards... Try it, you gonna love it...
JCP JAX RS expert group just approved the spec this week, so this is
brand new, *standard* and already supported with NetBeans 6.5 and works
like a charm with Prelude last time I tried.

http://jcp.org/en/jsr/detail?id=311

If you install the Ajax jMaki plugin from the Update Center, you can
even generate a simple jMaki Javascript client to interact with your
restful services.
>
>> This depending on what you want to achieve and if you
>> are using jsf. These generate backing beans that
>> connect all the way to jsf components in jsp pages
>> which I then convert onward to facelets.
>>
>
> I'm using JSF in my applications but didn't use facelets yet. I'm going to start use facelets that included in JSF 2.0. By the way are you already using JSF 2.0?
> Is it possible to start use in JSF 2.0 based application webbeans?
>
not sure. Anyone on the list tried that?

Ludo
>
>> V3 doesn't take ear or ejb jars that I know of.
>>
> Are you saying that V3 doesn't support traditional style of Enterprise Application at all?
> If that so why nobody beside you told me clearly that I can't deploy EAR package to Glassfish Prelude. After writing the last sentence I went to admin console and tried to deploy EAR kind of application and looks like you right I can't do it! Before I was so sure that issue related to deploy Enterprise Application appears only inside Netbeans ;)
> Definitely somebody should write about distinguish features between Prelude and Glassfish 2.
>
>
>> If you are working with JBI and composite apps you
>> may want to get at the Felix(with fuji) and the Felix
>> web console. It can show you the state of the
>> components and help you add your own.(If interested I
>> can point to more how-to)
>>
>
> Thank you again for your information. For now I'm still in read mode for this topic.
>
>
>> Metro module will run webservices but I have yet to
>> get it to play nice with the ejb module. Currently I
>> have two different gfv3 setups for testing ejbs
>> separate from web services.
>>
>
> I'm not using Metro yet but already started to use web services in limited manner and very interesting in this topic.
>
> Probably you would be interesting in reading this article:
> http://developers.sun.com/appserver/reference/techart/cometslideshow.html
>
> Best Regards,
> Vladimir
> [Message sent by forum member 'vladperl' (vladperl)]
>
> http://forums.java.net/jive/thread.jspa?messageID=301321
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

[att1.html]


vladperl

Posts: 94
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 24, 2008 10:45 AM   in response to: Ludovic Champen...
  Click to reply to this thread Reply

> > Is it possible today start using EJB 3.1 with the
> last build of Glassfish Prelude?
> >
> If you understand the limitations for Prelude:
> 1/ early access feature not complete via update
> center
> 2/ stateless beans and JPA sessions inside Web Apps,
> (no ear, or
> ejbmodule yet)
> 3/ no MDB, stateful yet
> 4/ did I say not complete?

I thought because Glassfish Prelude really close to final stage everything that already in implemented in glassfish 2 should be completed now in Prelude.
Now I understand even more clearly why glassfish v3 so module oriented.
That provide possibility for Glassfish to has independent life cycle from any other module (for example EJB Module).


> > Do you believe that makes sense now to migrate to
> ejb 3.1 style of the project in such environment as
> netbeans?
> >
> yes, but you cannot use the wizards to create ejbs
> since they do not
> work for a web app. The good new is that a JPA or a
> stateless bean is so
> simple to create you do not need a wizard, just a
> java pojo wizard is
> enough and you add annotations..

OK, I see your point.

> > I used that in netbeans 6.1 but maybe there are
> some improvements in version 6.5?
> >
> Some bug fixes.
> The main stuff I LOVE in NetBeans 6.5 is JAX RS (JSR
> 311) RestFul
> webservices from JPA wizards... Try it, you gonna
> love it...
> JCP JAX RS expert group just approved the spec this
> week, so this is
> brand new, *standard* and already supported with
> NetBeans 6.5 and works
> like a charm with Prelude last time I tried.

It's very interesting I definitely will try the wizard.

> http://jcp.org/en/jsr/detail?id=311
>
> If you install the Ajax jMaki plugin from the Update
> Center, you can
> even generate a simple jMaki Javascript client to
> interact with your
> restful services.

I will check it out. Also going to play with dojo -> restful services.

> > Is it possible to start use in JSF 2.0 based
> application webbeans?
> >
> not sure. Anyone on the list tried that?
>
> Ludo

Maybe using webbeans in JSF looks now like science project :)

Thank you Ludo for putting additional information. I got all answers I needed.
This forum is really great place to ask questions!

rimartin7

Posts: 99
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 25, 2008 9:38 PM   in response to: vladperl
  Click to reply to this thread Reply

gfv3 is much further along than a v2 developer having a look at the gfv3 admin console would at first think. It at first looks like a bunch of important stuff is missing. Not so.

You don't need an ear or an ejb jar module. Put them in your museum. Just pull the ejb code over into the war projects source and forget completely about the ear project. There is less xml needed to deploy; most of it is now fully handled by the annotations.

JBI's can be added with fuji framework running in the Felix.

Anyone know of a ent-app that would make a good gfv3 demo? Might be good to attach one here.

vladperl

Posts: 94
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 26, 2008 12:44 PM   in response to: rimartin7
  Click to reply to this thread Reply

> gfv3 is much further along than a v2 developer having
> a look at the gfv3 admin console would at first
> think. It at first looks like a bunch of important
> stuff is missing. Not so.
>
> You don't need an ear or an ejb jar module. Put them
> in your museum. Just pull the ejb code over into the
> war projects source and forget completely about the
> ear project. There is less xml needed to deploy;
> most of it is now fully handled by the annotations.

Ok, probably I will try redesign the smallest my application according to yours recommendations but I'm no sure if it's ok to put orm.xml(I'm using it for named queries) under WEB-INF folder.

> JBI's can be added with fuji framework running in the
> Felix.
Thank you for information. If I understand correctly it's possible now to use regular web application even if this application is composite kind :)

> Anyone know of a ent-app that would make a good gfv3
> demo? Might be good to attach one here.
Yes, I'd like to see the one!
Netbeans 6.5 doesn't have this kind of example.
It makes sense to submit the demo to netbeans team.

Best regards,
Vladimir

Marina Vatkina
Re: can't assign glassfish prelude to enterprise application netbeans
6.5

Posted: Sep 26, 2008 1:03 PM   in response to: vladperl
  Click to reply to this thread Reply

glassfish@javadesktop.org wrote:
>>gfv3 is much further along than a v2 developer having
>>a look at the gfv3 admin console would at first
>>think. It at first looks like a bunch of important
>>stuff is missing. Not so.
>>
>>You don't need an ear or an ejb jar module. Put them
>>in your museum. Just pull the ejb code over into the
>>war projects source and forget completely about the
>>ear project. There is less xml needed to deploy;
>>most of it is now fully handled by the annotations.
>
>
> Ok, probably I will try redesign the smallest my application according to yours recommendations but I'm no sure if it's ok to put orm.xml(I'm using it for named queries) under WEB-INF folder.

It should be as in any WEB+JPA app under WEB-INF/classes/META-INF.

>
>
>>JBI's can be added with fuji framework running in the
>>Felix.
>
> Thank you for information. If I understand correctly it's possible now to use regular web application even if this application is composite kind :)
>
>
>>Anyone know of a ent-app that would make a good gfv3
>>demo? Might be good to attach one here.
>
> Yes, I'd like to see the one!
> Netbeans 6.5 doesn't have this kind of example.
> It makes sense to submit the demo to netbeans team.
>
> Best regards,
> Vladimir
> [Message sent by forum member 'vladperl' (vladperl)]
>
> http://forums.java.net/jive/thread.jspa?messageID=301887
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


vladperl

Posts: 94
Re: can't assign glassfish prelude to enterprise application netbeans 6.5
Posted: Sep 26, 2008 1:13 PM   in response to: Marina Vatkina
  Click to reply to this thread Reply

> I'm no sure if it's ok to put orm.xml(I'm using it
> for named queries) under WEB-INF folder.
>
> It should be as in any WEB+JPA app under
> WEB-INF/classes/META-INF.

Thank you Marina for help.
Having such great support on the forum I'm going to move to EJB 3.1 as soon as I can.




 XML java.net RSS