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:
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.
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
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
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.
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.
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
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.