-
1. Re: JBoss Portal + EJB 3.0? is it possible?
bdaw Nov 30, 2005 11:23 AM (in response to psherif)JBP2.0 and EJB is used by JBoss Labs - in JBoss Forge and JBoss Wiki
Look at:
http://labs.jboss.com/portal/index.html?ctrl:id=page.default.info&project=jbosslabs
http://labs.jboss.com/portal/index.html?ctrl:id=window.default.WikiPortletWindow&ctrl:type=action&page=WhatIsJBossForge
http://labs.jboss.com/portal/index.html?ctrl:id=page.default.info&project=jbosswiki
You can find working example in this projects.
And I think that you need portal 2.0.1RC3 (it should work on jboss as 4.0.3sp1) for ejb3 -
2. Re: JBoss Portal + EJB 3.0? is it possible?
szimano Nov 30, 2005 11:30 AM (in response to psherif)Just install 4.0.3sp1 from installer with EJB3 and use 2.0.1RC3 Portal that can be obtained here:
http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=84509&release_id=353715
Cheers,
Tomek
ps. If EJB3 Trailblazer doesn't work... don't worry - EJB3 changes dramatically form version to version (vide: @Inject is now @PersistanceContext) so EJB3 TrailBlazer may not work ;-) -
3. Re: JBoss Portal + EJB 3.0? is it possible?
psherif Nov 30, 2005 12:52 PM (in response to psherif)thanks alot, we will check it out :)
I'll post the results later. -
4. Re: JBoss Portal + EJB 3.0? is it possible?
psherif Dec 1, 2005 6:35 AM (in response to psherif)I finally got around to have a look at your suggestions.
Concerning the project links, fllowing them i fear i was unable to find anything relating to my question, and looking at their sourcecode probably won't help me cause its the jboss setup im interested in.
I tried JBoss 4.0.3sp1 from installer choosing the ejb3 setting, and leaving everything else at default ( since don't have that much experience with jboss and its related services ) .
I fetched the Jboss Portal 2.0.1rc3 and copied it along with portal-mysql-ds.xml, into the servers /default/deploy dir. the mysql connector went to /default/lib.
So everything as usual, but when starting jboss i get multiple exceptions,
from the main deployer, from portal about some non registered hibernate related stuff, and finally a nullpointer exception when trying to access the portal.
I noticed that the deploy directory is by default considerably less crowded than in other jboss installations- maybe im missing some services here?
the Hibernate deployer, or something else?
or do i I have to change something in the portal before building it to adjust it to jboss 4.03?
I'm clueless here, some more hints or better a full desription of the necessary jboss setup/config would be great .
btw ejbtrailblazer works again with this setup lol -
5. Re: JBoss Portal + EJB 3.0? is it possible?
psherif Dec 1, 2005 12:28 PM (in response to psherif)Since nobody seems to know anything specific or cares enough to post it, i'll post our working JBoss setup, which one of our guys figured out.
Working EJB3.0 + JBoss Portal 2.01RC3 on Jboss AS 4.03SP1 :
1.Install JBoss AS 4.03SP1 from installer choosing EJB3 support
2.get a standard zipped version of Jboss AS 4.03SP1
3.copy mail.jar, mail-plugin.jar activation.jar from /server/default/lib/ of the zipped
jboss to your installed Jboss /server/default/lib/. Also copy mail-service.xml from the zipped Jboss, directory is /server/default/deploy.
4. Deploy JBoss Portal 2.01RC3 according to the documentation.
that should should do the trick.
optionally if it still doesnt work:
5. make sure that the jboss-portal.sar\conf\hibernate\hibernate.cfg.xml
contains the right dialect for your DB - for example you need "org.hibernate.dialect.MySQLDialect" for MySQL
6.check if your datasource descriptor portal-*-ds.xml describes the same datasource names that are referenced in jboss-portal.sar\META-INF\jboss-service.xml and
jboss-portal.sar\portal-cms.sar\META-INF\jboss-service.xml
for example "NoTxPortalDS_2_0_0" and "PortalDS_2_0_0".
Hope this helps.
greetings,
Patric