Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems in Deploying Portlets in JBoss 2.2 Portal + AS

 
Sudha Rams
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm a newbie to both JBoss and portlet. I�ve placed the portlet WAR under the C:\JBoss\server\default\deploy folder. The name of my portal app is "funportal" and I've got 2 portlets viz. SettingsPortlet and ZodiacSignPortlet. My portlet.xml contains the correct data wrt the fully qualified class names.

When I try to access the portal app via http://localhost:8080/portal/funportal, I only get a standard JBoss 2.2.1 SP1 welcome screen same as that of http://localhost:8080/portal/default.

The console log gives the following information:

The portlet SettingsPortlet threw a runtime exception during init

:

Caused by: java.lang.ClassCastException

at org.jboss.portal.portlet.PortletContainer.start(PortletContainer.java:227)

The portlet ZodiacSignPortlet threw a runtime exception during init

:

Caused by: java.lang.ClassCastException

at org.jboss.portal.portlet.PortletContainer.start(PortletContainer.java:227)

I�m not sure where I�m going wrong. Please help! Hope I�ve given you sufficient info. Please let me know if you need more.

~Sudha
 
Ravith Botejue
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I too got the same problem with jboss portal+ AS 2.4.. Any clue. pls let me know.
 
Lalit mishra
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In one of the xml file you have to change the default portal name to your portal name . I have done that but I dont remember clearly .
Even on the default portal on the left handside portlet one can see there deployed portal OR on the tabs which are provided .
It would be better of if one uses eclipse for development.

else try this
http://localhost:8080/portal/portal/myportal.

Yes two times portal It worked for me .
 
Ravith Botejue
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I managed to get rid of the problem.

The problem was caused by the portlet-api-blah-blah.jar libraray in my application. I deleted that file and added the jboss portlet api libraries in
JBOSS_HOME\default\deploy\jboss-portal.sar\lib
to my ant build script under compile class path.

BINGO!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic