PDA

View Full Version : Trouble deploying PhoneBook portlet example



belaran
Aug 2nd, 2005, 07:43 AM
Hi,

I wanted to try the portlet version of the phone book samples relaeased here (http://opensource.atlassian.com/confluence/spring/display/WEBFLOW/Portlet+Integration) .

Howerver, i got some trouble not with the example but when i deploy the portlet container , LifeRay (www.liferay.com), 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 :



<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 !

belaran
Aug 2nd, 2005, 10:52 AM
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.