The problem I have had with the mvn generated portlet was with the
portlet.xml file being incorrect.  The portlet class that was generated did
not reference the actual class that was generated.  You will need to update
the portlet.xml file to reference the generated class.

This is what I did and the portlet deployed correctly in Jetspeed 2.2.
mvn archetype:create -DarchetypeArtifactId=maven-archetype-portlet
-DgroupId=com.jeff.portlet -DartifactId=jeff-pa

Updated the portlet-class in the portlet.xml file
<portlet-class>com.jeff.portlet.MyPortlet</portlet-class>

Built the portlet from the root of my generated app: mvn install

Started Jetspeed.

Copied the generated jeff-pa-1.0-SNAPSHOT.war from the target folder to the
jetspeed deploy folder.  In my case when using the default installation it
is "C:\Apache\Jetspeed-2.2.0\webapps\jetspeed\WEB-INF\deploy".

Jetspeed displayed:
INFO: Deploying web application archive jeff-pa-1.0-SNAPSHOT.war
JetspeedContainerServlet: starting initialization of Portlet Application at:
jeff-pa-1.0-SNAPSHOT
JetspeedContainerServlet: initialization done for Portlet Application at:
jeff-pa-1.0-SNAPSHOT

I then logged into Jetspeed and added the portlet to a page using the
standard Jetspeed UI.

I hope this helps.

On Wed, Sep 2, 2009 at 3:50 PM, tony ennis <tony.en...@insightbb.com> wrote:

>
> I installed jetspeed and got the main portal demo page working.
>
> Then I created a portlet using 'mvn archetype:generate', made a .war out of
> it with 'mvn package', then copied it to
> <jetspeed-2.2.0>/webapps/jetspeed/WEB-INF/deploy.  According to the logs,
> the war file was consumed by jetspeed, compiled, and loaded.
>
> When I refresh the portlet demos page, nothing changes.  It is as if I
> didn't deploy anything.  Did I miss a step?
>
> localhost.log:
> Sep 2, 2009 4:29:29 PM org.apache.catalina.core.ApplicationContext log
> INFO: JetspeedContainerServlet: starting initialization of Portlet
> Application at: mps5-1.0
> Sep 2, 2009 4:29:29 PM org.apache.catalina.core.ApplicationContext log
> INFO: JetspeedContainerServlet: Could not yet start portlet application at:
> mps5-1.0. Starting back ground thread to start when the portal comes
> online.
> Sep 2, 2009 4:29:29 PM org.apache.catalina.core.ApplicationContext log
> INFO: JetspeedContainerServlet: initialization done for Portlet Application
> at: mps5-1.0
> Sep 2, 2009 4:29:29 PM org.apache.catalina.core.ApplicationContext log
> INFO: JetspeedContainerServlet: attemping to start Portlet Application at:
> /mps5-1.0
> Sep 2, 2009 4:29:29 PM org.apache.catalina.core.ApplicationContext log
> INFO: JetspeedContainerServlet: started Portlet Application at: /mps5-1.0
>
> catalina.log:
> Sep 2, 2009 4:29:29 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive mps5-1.0.war
>
> I have no idea what to try next. Any ideas?
>
> --
> View this message in context:
> http://www.nabble.com/Can%27t-seem-to-get-a-portlet-working-tp25265465p25265465.html
> Sent from the Jetspeed - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
> For additional commands, e-mail: jetspeed-user-h...@portals.apache.org
>
>


-- 
Regards,
Jeff Pierce

Reply via email to