jQuery in Action, 2nd edition*
The moose likes Portals and Portlets and the fly likes Jetspeed and simple Portlet deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Jetspeed and simple Portlet deployment" Watch "Jetspeed and simple Portlet deployment" New topic
Author

Jetspeed and simple Portlet deployment

vjy chin
Ranch Hand

Joined: Feb 17, 2005
Posts: 279
I just started working on Jetspeed 2 portal in Redhat Linux 5. I installed the "jetspeed-installer-demo-2.2.0.jar" file and everything looks fine. So I did a basic simple portlet and deployed it in "/jetspeed/webapps/jetspeed/WEB-INF/deploy". I read the documentation that if I put my .war file there, it would be automatically deployed.

But the file is not getting deployed. I saw the catalina.log file to see if the file I put in the deploy folder is picked up, but its not.

The files I tried were taken from http://jetspeed-japan.sourceforge.jp/jetspeed-2-trans/en/guides/guide-simple-portlet.html.

I also followed Cameron McKenzie's tutorial "http://www.scja.com/jsr168/399test829mockexamsportletdevelopmentbooks.jsp?link=multi002poormansportlet". Thanks Cameron for the nice tutorial.

Any help in getting my deployment going would be appreciated.

Thanks.
vjy chin
Ranch Hand

Joined: Feb 17, 2005
Posts: 279
I checked the jetspeed-deployment.log file and this is the error(I deleted some exception traces) I got.

2009-10-20 14:07:39,661 [Autodeployment File Scanner Thread] ERROR deployment - java.lang.IllegalArgumentException: WEB-INF/web.xml
org.apache.jetspeed.deployment.DeploymentException: java.lang.IllegalArgumentException: WEB-INF/web.xml
at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:224)
at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.invokeDeploy(DeployPortletAppEventListener.java:207)
at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.dispatch(StandardDeploymentManager.java:264)
at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.deploy(StandardDeploymentManager.java:178)
at org.apache.jetspeed.deployment.impl.StandardDeploymentManager.fireDeploymentEvent(StandardDeploymentManager.java:209)
at org.apache.jetspeed.deployment.impl.StandardDeploymentManager$FileSystemScanner.run(StandardDeploymentManager.java:357)
Caused by: java.lang.IllegalArgumentException: WEB-INF/web.xml
at org.apache.jetspeed.tools.deploy.JetspeedDeploy.<init>(JetspeedDeploy.java:178)
at org.apache.jetspeed.tools.deploy.JetspeedDeploy.<init>(JetspeedDeploy.java:96)
at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployPortletApplication(DeployPortletAppEventListener.java:219)
... 5 more
2009-10-20 14:07:39,662 [Autodeployment File Scanner Thread] ERROR deployment - Failure deploying /var/jetspeed/webapps/jetspeed/WEB-INF/deploy/simplest.war
2009-10-20 14:07:40,252 [Autodeployment File Scanner Thread] ERROR deployment - Unable to start portlet application after 10 retries: org.apache.jetspeed.components.portletregistry.RegistryException: Error starting portlet application simplest
org.apache.jetspeed.components.portletregistry.RegistryException: Error starting portlet application simplest
at org.apache.jetspeed.tools.pamanager.PortletApplicationManager.attemptStartPA(PortletApplicationManager.java:677)
at org.apache.jetspeed.tools.pamanager.PortletApplicationManager.tryStartPortletApplication(PortletApplicationManager.java:244)
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)


2009-10-20 14:07:40,252 [Autodeployment File Scanner Thread] ERROR deployment - org.apache.jetspeed.components.portletregistry.RegistryException: Error starting portlet application simplest
org.apache.jetspeed.deployment.DeploymentException: org.apache.jetspeed.components.portletregistry.RegistryException: Error starting portlet application simplest
at org.apache.jetspeed.deployment.impl.DeployPortletAppEventListener.deployLocalPortletApplication(DeployPortletAppEventListener.java:243)

2009-10-20 14:07:40,252 [Autodeployment File Scanner Thread] ERROR deployment - Failure deploying /var/jetspeed/webapps/jetspeed/WEB-INF/deploy/local/simplest.war
2009-10-20 14:09:15,246 [PortletApplicationManager Descriptor Change Monitor Thread] ERROR deployment - Max number of retries (10) reached. Ignoring Monitor for simplest


---------------

The web.xml, portlet.xml and simplest.psml are the same as it is in the site.

Did I miss anything?

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jetspeed and simple Portlet deployment
 
Similar Threads
Deployed portlets do not show up in Jetspeed
Portlets Using JetSpeed
Problems developing a new Hello Word�s Portlet for JetSpeed
Jetspeed 2: works only in Tomcat?
"simplest" portlet