1. Install Kosmos portlet to JBOSS Portal. This portlet can be used to visualize data from JIRA tool. 2. Create my own portlet by following the Portlet Tutorial (http://wiki.opensymphony.com/display/WW/Portlet+Tutorial#PortletTutorial-intro)
Unfortunately, I wasn't able to deploy them successfully (yet). Here are some problems I got:
1. Kosmos portlet
In the reference manual I have (http://labs.jboss.com/kosmos/reference-manual.html), there are some steps to deploy Kosmos into JBOSS AS and Portal.
The order of the deployment is:
install JBOSS AS --> deploy Jakarta slide (slide.war) --> install JBOSS Portal --> run server deploy script --> run portlet deploy script --> launch JBOSS As
But since, I already installed the JBOSS AS and Portal, I jumped into deploying the Jakarta slide (it seems this Jakarta project is already frozen since early 2007) by copying the slide.war file to pentaho\bi-server\jboss\server\default\deploy. I don't know if this different deploy order could lead to problem or not.
I got no idea about the next step of running deployment scripts. But later I found the description of the server and portlet deploy scripts. I put those scripts in the same folder as the slide.war.
then I built it using cmd, the build failed due to wrong reference of
** I still got to study about Java stuffs I'm not familiar with, like: ANT, WAR, XML (I only know a bit about XML) T _ T
2. Portlet Tutorial
I followed the tutorial carefully and got no problem with that. The problem arose when I need to make .war (Web ARchive) file. In the tutorial, it said I could just zip the WEB-INF folder, and name it as "MyPortlet.war"
I did make it and deploy it to the JBOSS server (pentaho\bi-server\jboss\server\default\deploy).
When I start the server, I got the following error:
Error configuring application listener of class com.opensymphony.webwork.portlet.context.ServletContextHolderListener java.lang.ClassNotFoundException: com.opensymphony.webwork.portlet.context.ServletContextHolderListener
and also
Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@af411f71 { url=file:/C:/java/pentaho/bi-server/jboss/server/default/deploy/MyPortlet.war }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: URL file:/C:/java/pentaho/bi-server/jboss/server/default/tmp/deploy/tmp48860MyPortlet-exp.war/ deployment failed
state: FAILED
watch: file:/C:/java/pentaho/bi-server/jboss/server/default/deploy/MyPortlet.war
altDD: null
lastDeployed: 1202220240918
lastModified: 1202220240902
mbeans:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:war=MyPortlet.war,id=-1354686607
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/java/pentaho/bi-server/jboss/server/default/tmp/deploy/tmp48860MyPortlet-exp.war/ deployment failed
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=MyPortlet.war,id=-1354686607
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/C:/java/pentaho/bi-server/jboss/server/default/tmp/deploy/tmp48860MyPortlet-exp.war/ deployment failed
I thought that was because I didn't build the war file correctly. So I tried another way to build the war file by using ant script. I ran the ant file using Eclipse. And it gave the same kind of war file done using the previous method. I put it in the deployment folder and restart the server. And..... I get the same error ... T_T
arghhhh.... -_-!
i hate deploying for the first time.. ("adaaaaaaaa... aja masalahhh... haihhh capek deh" --> sorry Eric, this one is hard to say it in english hehhe).
cheerzzz
tot morgen
No comments:
Post a Comment