-
1. Re: Need help regarding jboss portal development with Spring
sgwood Dec 30, 2005 8:11 AM (in response to ervikas)Spring 2.0 M1 includes a Spring Portal MVC component. I have been trying to get is working under JBPortal 2.2, but there are a few issues:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914627
and
http://jira.jboss.com/jira/browse/JBPORTAL-539
Attached to the JIRA issue is a zip that contains the Spring Portal MVC demo configured for JBoss. When the Spring Portal developer does a workaround for this issue, I'll post another zip on JIRA and update this thread.
Sherman
JasperSoft -
2. Re: Need help regarding jboss portal development
ervikas Dec 31, 2005 12:07 AM (in response to ervikas)
Hi sherman
Thanks for ur reply.
Actually i got a sample spring MVC application and got it working after changing some configuration under JBPortal 2.0. You can find that app at
http://labs.jboss.com/portal/index.html?ctrl:id=page.default.downloads&project=portletswap&category=.portlets.framework
probably u can also have a try with it.
I will try to work with the sample application mentioned by you at my end and see how it works -
3. Re: Need help regarding jboss portal development
ervikas Dec 31, 2005 2:13 AM (in response to ervikas)Hi Sherman
I tried to work out with the sample spring application that i downloaded from the link mentioned by you. But when i deployed the app i got an error saying that the child tag "pages" is missing from the "spring-portlet-example-portal.xml". Then i put the all the page entries in the "spring-portlet-example-portal.xml" but it again showed the error that the pages are already been registered as both the *-portal.xml file and *-pages.xml file contained the entries for the pages. Then i removed the *-pages.xml file and redeployed the app. Then it got deployed successfully.
But when i requested the portal by giving the URL as http://localhost:8080/portal/spring-portlet-example it just showed me the JBPortal default page without any portlets. On the console i could see that everything was deployed correctly.
Can u suggest what wrong i had done. -
4. Re: Need help regarding jboss portal development
sgwood Dec 31, 2005 8:05 AM (in response to ervikas)
I think you are running into some differences between JBPortal 2.0 and 2.2, which is what I am working with.
There are still some problems with Spring 2.0 HEAD + JBPortal 2.2 - I am getting a NPE on getPortletMode still.
Sherman
JasperSoft -
5. Re: Need help regarding jboss portal development
ervikas Jan 2, 2006 1:46 AM (in response to ervikas)
I tried to work with jbportal 2.2 but i wasn't able to run it on jboss AS 4.0.3sp1. After installing the portal i requested with the URL [http://localhost:8080/portal] but browser said that the resource is not available. When i saw the database table I found that the JBP_portal,JBP_page,JBP_portal_mode etc were empty however the JBP_portal_users,JBP_portal_roles etc were populated.
While starting the Jboss AS i found the following error on the console:-
09:58:41,687 INFO [StandardQueryCache] starting query cache at region: org.hibernate.cache.S
09:58:41,687 INFO [SessionFactoryImpl] Checking 0 named queries
09:58:41,718 WARN [JDBCExceptionReporter] SQL Error: 942, SQLState: 42000
09:58:41,718 ERROR [JDBCExceptionReporter] ORA-00942: table or view does not exist
09:58:41,750 WARN [JDBCExceptionReporter] SQL Error: 942, SQLState: 42000
09:58:41,750 ERROR [JDBCExceptionReporter] ORA-00942: table or view does not exist
09:58:41,765 WARN [JDBCExceptionReporter] SQL Error: 942, SQLState: 42000
09:58:41,765 ERROR [JDBCExceptionReporter] ORA-00942: table or view does not exist
09:58:41,796 WARN [JDBCExceptionReporter] SQL Error: 942, SQLState: 42000
09:58:41,796 ERROR [JDBCExceptionReporter] ORA-00942: table or view does not exist
09:58:41,828 WARN [JDBCExceptionReporter] SQL Error: 942, SQLState: 42000
09:58:41,828 ERROR [JDBCExceptionReporter] ORA-00942: table or view does not exist
CAn u suggest what's wrong there
Regards [/url] -
6. Re: Need help regarding jboss portal development
ervikas Jan 5, 2006 5:03 AM (in response to ervikas)
Thanks Sherman
I got jbportal 2.2 working on jboss AS 4.0.3sp1 but only with ther default database. with oracle 9i database it's still not working. I deployed your spring sample app and requested but was not able to see any page. Then i createed the *-object.xml as specified in the portal reference guide and added the jboss-app.xml and specified the app context in that file. After that i was able to see all the pages for the application but not able to perform any action on the books portlet as it is having issues mentioned by you.
I too want to convert my spring application to portlets,so i am trying to look into sample app for how it interact with spring.
Can u suggest some docs that will help me to understand the spring portlet component api's.
Once again thanks very much.