wood burning stoves*
The moose likes Portals and Portlets and the fly likes Problems in Deploying Portlets in JBoss 2.2 Portal + AS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Problems in Deploying Portlets in JBoss 2.2 Portal + AS" Watch "Problems in Deploying Portlets in JBoss 2.2 Portal + AS" New topic
Author

Problems in Deploying Portlets in JBoss 2.2 Portal + AS

Sudha Rams
Greenhorn

Joined: May 13, 2005
Posts: 12
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

Joined: May 25, 2005
Posts: 6
I too got the same problem with jboss portal+ AS 2.4.. Any clue. pls let me know.


RB
Lalit mishra
Ranch Hand

Joined: Sep 01, 2005
Posts: 99
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

Joined: May 25, 2005
Posts: 6
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!
 
 
subject: Problems in Deploying Portlets in JBoss 2.2 Portal + AS