You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by ca...@poczta.onet.pl on 2006/03/08 23:44:37 UTC

"simplest" portlet

Hello

I'm new, created simple portlets and coped war file to .../jetspeed/web-inf/deploy folder
after restart tomcat server i saw this:

(...)
INFO: Server startup in 65063 ms
Creating war C:\Java\Apache Jetspeed 2.0\webapps\simplest.war ...
2006-02-25 19:13:58 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive simplest.war
War C:\Java\Apache Jetspeed 2.0\webapps\simplest.war created
INFO: File: C:\Java\Apache Jetspeed 2.0\webapps\jetspeed\WEB-INF\deploy\simplest.war deployed
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester).
log4j:WARN Please initialize the log4j system properly.
JetspeedContainerServlet: starting initialization of Portlet Application at: simplest
JetspeedContainerServlet: initialization done for Portlet Application at: simplest

I stand that is all ok, and page should be work becouse
to deploy a portlet the Jetspeed 2 Wiki says:  
"Copy the .war file to Jetspeed's deployment directory, by default this  
is WEB-INF/deploy. Jetspeed will take care of automatically deplying the  
portlet into the portlet registry and will also deploy the portlet as a  
web application into the app server Jetspeed is deployed to."
But after open localhost:5580/jetspeed/simplest.psml
i don't see new portlet, only default page of jetspeed.

How can i ACTIVE that new portlet?

Here is my web.xml and portlet.xml files:
---------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                         "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
  <display-name>simplest</display-name>
  <description>The world's simplest portlet</description>
</web-app>
---------------
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app id="simplest" version="1.0"
	xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
  <portlet id="simplest">
    <portlet-name>simplest</portlet-name>
    <display-name>Simple Display Name</display-name>
    <portlet-class>simplest</portlet-class>
    <supports>
      <mime-type>text/html</mime-type>
      <portlet-mode>EDIT</portlet-mode>
      <portlet-mode>VIEW</portlet-mode>
      <portlet-mode>HELP</portlet-mode>
    </supports>
    <supported-locale>en</supported-locale>
    <portlet-info>
      <title>Simple Title</title>
      <short-title>The world's simplest portlet</short-title>
    </portlet-info>
  </portlet>
</portlet-app>
--------------------
and simlest.psml:
<?xml version="1.0" encoding="UTF-8"?>
<page id="simplest">
  <defaults   skin="orange"
     layout-decorator="tigris"
     portlet-decorator="tigris"/>
  <title>simplest</title>
  <fragment id="simplest-layout" type="layout" name="jetspeed::VelocityTwoColumns">
    <fragment id="simplest-portlet" type="portlet" name="simplest::Simplest">
      <property layout="TwoColumns" name="row" value="0"/>
      <property layout="TwoColumns" name="column" value="0"/>
    </fragment>
  </fragment>
</page>

--
This message was sent on behalf of cadrian@poczta.onet.pl at openSubscriber.com
http://www.opensubscriber.com/messages/jetspeed-user@jakarta.apache.org/topic.html

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: "simplest" portlet

Posted by Ralph Goers <Ra...@dslextreme.com>.
Can somebody fix the documentation at 
http://portals.apache.org/jetspeed-2/guides/guide-psml.html#Portlet_Fragments.  
The doc there says "The portlet name generally takes the form of 
'portlet-app-id:portlet-id' as specified in the portlet.xml files."  
which generally seems to be incorrect.  As you mentioned, the 
portlet-app-id is the web context name and the portlet-id is really the 
portlet name.

Ralph


Raj Saini wrote:
> Portlet name in your .psml is:
>
> [webapp context name]:[portlet-name in portlet.xml]
>
> Verify if your webapp context name is correct. It must match with the
> init parameter of Jetspeed container servlet (it is configured by
> Jetspeed deployer) in your application's web.xml file.
>
>
>   
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: "simplest" portlet

Posted by Raj Saini <ra...@gmail.com>.
Portlet name in your .psml is:

[webapp context name]:[portlet-name in portlet.xml]

Verify if your webapp context name is correct. It must match with the
init parameter of Jetspeed container servlet (it is configured by
Jetspeed deployer) in your application's web.xml file.

On 3/9/06, cadrian@poczta.onet.pl <ca...@poczta.onet.pl> wrote:
> Hello
>
> I'm new, created simple portlets and coped war file to .../jetspeed/web-inf/deploy folder
> after restart tomcat server i saw this:
>
> (...)
> INFO: Server startup in 65063 ms
> Creating war C:\Java\Apache Jetspeed 2.0\webapps\simplest.war ...
> 2006-02-25 19:13:58 org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive simplest.war
> War C:\Java\Apache Jetspeed 2.0\webapps\simplest.war created
> INFO: File: C:\Java\Apache Jetspeed 2.0\webapps\jetspeed\WEB-INF\deploy\simplest.war deployed
> log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester).
> log4j:WARN Please initialize the log4j system properly.
> JetspeedContainerServlet: starting initialization of Portlet Application at: simplest
> JetspeedContainerServlet: initialization done for Portlet Application at: simplest
>
> I stand that is all ok, and page should be work becouse
> to deploy a portlet the Jetspeed 2 Wiki says:
> "Copy the .war file to Jetspeed's deployment directory, by default this
> is WEB-INF/deploy. Jetspeed will take care of automatically deplying the
> portlet into the portlet registry and will also deploy the portlet as a
> web application into the app server Jetspeed is deployed to."
> But after open localhost:5580/jetspeed/simplest.psml
> i don't see new portlet, only default page of jetspeed.
>
> How can i ACTIVE that new portlet?
>
> Here is my web.xml and portlet.xml files:
> ---------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>                          "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app>
>   <display-name>simplest</display-name>
>   <description>The world's simplest portlet</description>
> </web-app>
> ---------------
> <?xml version="1.0" encoding="UTF-8"?>
> <portlet-app id="simplest" version="1.0"
>         xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>         xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
>   <portlet id="simplest">
>     <portlet-name>simplest</portlet-name>
>     <display-name>Simple Display Name</display-name>
>     <portlet-class>simplest</portlet-class>
>     <supports>
>       <mime-type>text/html</mime-type>
>       <portlet-mode>EDIT</portlet-mode>
>       <portlet-mode>VIEW</portlet-mode>
>       <portlet-mode>HELP</portlet-mode>
>     </supports>
>     <supported-locale>en</supported-locale>
>     <portlet-info>
>       <title>Simple Title</title>
>       <short-title>The world's simplest portlet</short-title>
>     </portlet-info>
>   </portlet>
> </portlet-app>
> --------------------
> and simlest.psml:
> <?xml version="1.0" encoding="UTF-8"?>
> <page id="simplest">
>   <defaults   skin="orange"
>      layout-decorator="tigris"
>      portlet-decorator="tigris"/>
>   <title>simplest</title>
>   <fragment id="simplest-layout" type="layout" name="jetspeed::VelocityTwoColumns">
>     <fragment id="simplest-portlet" type="portlet" name="simplest::Simplest">
>       <property layout="TwoColumns" name="row" value="0"/>
>       <property layout="TwoColumns" name="column" value="0"/>
>     </fragment>
>   </fragment>
> </page>
>
> --
> This message was sent on behalf of cadrian@poczta.onet.pl at openSubscriber.com
> http://www.opensubscriber.com/messages/jetspeed-user@jakarta.apache.org/topic.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org