Announcement Announcement Module
Collapse
No announcement yet.
Trouble deploying PhoneBook portlet example Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trouble deploying PhoneBook portlet example

    Hi,

    I wanted to try the portlet version of the phone book samples relaeased here .

    Howerver, i got some trouble not with the example but when i deploy the portlet container , LifeRay, into Tomcat. I tried post my problems on the liferay forum but I had no response in return.

    So i was wondering if may be some of you i've tried this simple and can help me.

    I successfully install the db but I got a problem when i deploy the liferay.war. The following file is missing :

    C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\..\liferay
    But there no file named liferay that should be in the root of webapps's directory !

    I added my liferay.xml file in case it has something to do with it :

    Code:
    <Context
       path=""
       docBase="../liferay"
       debug="0"
       reloadable="true"
       crossContext="true">
    <Resource
           name="jdbc/LiferayPool"
           auth="Container"
           type="javax.sql.DataSource"
       />
       <ResourceParams name="jdbc/LiferayPool">
           <parameter>
               <name>driverClassName</name>
               <value>com.mysql.jdbc.Driver</value>
           </parameter>
           <parameter>
               <name>url</name>
               <value>jdbc&#58;mysql&#58;//localhost/lportal</value>
           </parameter>
           <parameter>
               <name>root</name>
               <value>test</value>
           </parameter>
           <parameter>
               <name>mike</name>
               <value>test</value>
           </parameter>
           <parameter>
               <name>maxActive</name>
               <value>15</value>
           </parameter>
       </ResourceParams>
       <Realm
           className="org.apache.catalina.realm.JAASRealm"
           appName="PortalRealm"
           userClassNames="com.liferay.portal.jaas.PortalPrincipal"
           roleClassNames="com.liferay.portal.jaas.PortalRole"
           debug="99"
           useContextClassLoader="false"
       />
    </Context>
    I'm using MySQL 5 et Tomcat 5.0.

    Thanks a lot !

  • #2
    Forget it...

    My question was silly, i just had to change ../liferay to ./liferay in the liferay.xml file.

    Sorry, that's one was pretty obvious.

    Comment

    Working...
    X