Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
chau thang
Unable to locate deployment context from portlet properties
March 17, 2011 8:53 AM
Answer

chau thang

Rank: New Member

Posts: 7

Join Date: March 17, 2011

Recent Posts

hi!
I begin with liferay and I get an error after

06:32:41,078 WARN [ClpSerializer:62] Unable to locate deployment context from portlet properties
java.lang.ExceptionInInitializerError
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.test.service.ClpSerializer.getServletContextName(ClpSerializer.java:53)
at com.test.service.messaging.ClpMessageListener.getServletContextName(ClpMessageListener.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.getClpServletContextName(BaseHotDeployListener.java:61)
at com.liferay.portal.kernel.deploy.hot.BaseHotDeployListener.registerClpMessageListeners(BaseHotDeployListener.java:127)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.doInvokeDeploy(PluginPackageHotDeployListener.java:105)
at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDeploy(PluginPackageHotDeployListener.java:43)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:109)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:183)
at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:38)
at com.liferay.portal.kernel.servlet.PortletContextListener.doPortalInit(PortletContextListener.java:99)
at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:61)
at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:51)
at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:50)
at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:55)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1244)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.liferay.portal.configuration.ConfigurationImpl.getFileName(ConfigurationImpl.java:346)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:131)
at com.liferay.portal.configuration.ConfigurationImpl.<init>(ConfigurationImpl.java:62)
at com.liferay.portal.configuration.ConfigurationFactoryImpl.getConfiguration(ConfigurationFactoryImpl.java:28)
at com.liferay.portal.kernel.configuration.ConfigurationFactoryUtil.getConfiguration(ConfigurationFactoryUtil.java:25)
at com.liferay.util.portlet.PortletProps.<init>(PortletProps.java:65)
at com.liferay.util.portlet.PortletProps.<clinit>(PortletProps.java:69)
... 34 more


I tried.Does anyone know please just for me! thank
William Fleming
RE: Unable to locate deployment context from portlet properties
March 17, 2011 9:23 AM
Answer

William Fleming

Rank: Regular Member

Posts: 180

Join Date: September 15, 2010

Recent Posts

What version of liferay are you using?
What DB?

What changes have you made are you jsut trying to start it up? have you configured anything in ext.properties?

Thanks
William
chau thang
RE: Unable to locate deployment context from portlet properties
March 17, 2011 9:26 AM
Answer

chau thang

Rank: New Member

Posts: 7

Join Date: March 17, 2011

Recent Posts

I use vesion 6.1 and DB is mysql. Mysql running good
William Fleming
RE: Unable to locate deployment context from portlet properties
March 17, 2011 9:29 AM
Answer

William Fleming

Rank: Regular Member

Posts: 180

Join Date: September 15, 2010

Recent Posts

So 6.1 nightly? Are you sure the nightly even works i had been playing about with few earlier this month and they would even launch out the box? have you had it working? What did you play about with before its died on launch?

What is in your portal-ext.properties file?
chau thang
RE: Unable to locate deployment context from portlet properties
March 17, 2011 9:35 AM
Answer

chau thang

Rank: New Member

Posts: 7

Join Date: March 17, 2011

Recent Posts

yes ! I working in version 6.1
and context in file portal-ext.properties is :
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/liferay?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=root

i am running it and more than 100 table in mysql
William Fleming
RE: Unable to locate deployment context from portlet properties
March 17, 2011 9:43 AM
Answer

William Fleming

Rank: Regular Member

Posts: 180

Join Date: September 15, 2010

Recent Posts

is there any specific reason you are using the nightly version...? If that is just a out the box install with mysql in ext file then it could just be a stability issue with the nightly.

i am running it and more than 100 table in mysql


Are you importing a database from a previous version? I don't really understand what you mean.
chau thang
RE: Unable to locate deployment context from portlet properties
March 17, 2011 9:54 AM
Answer

chau thang

Rank: New Member

Posts: 7

Join Date: March 17, 2011

Recent Posts

I am sorry, but i want create 1 table and add data into table.
I create table by file service.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_0_0.dtd">
<service-builder package-path="com.test">
<author>admin</author>
<namespace>admin</namespace>

<entity name="Book" remote-service="true" local-service="true"
table="book">
<column name="bookid" type="long" primary="true" />
<column name="title" type="String" />
<column name="description" type="String" />
<column name="price" type="double" />
<column name="author" type="String" />
<order>
<order-column name="title" order-by="acs" />
</order>
<finder return-type="Collection" name="Title">
<finder-column name="title" />
</finder>
</entity>
</service-builder>


and and i add method in class BookLocalService
public Book addbook(String title, String description, double price,
String author) throws SystemException, PortalException {
Book book = bookPersistence.create(CounterLocalServiceUtil
.increment(Book.class.getName()));
book.setTitle(title);
book.setDescription(description);
book.setPrice(price);
book.setAuthor(author);
return bookPersistence.update(book, true);


I add success method but when i call method add the error
William Fleming
RE: Unable to locate deployment context from portlet properties
March 18, 2011 2:18 AM
Answer

William Fleming

Rank: Regular Member

Posts: 180

Join Date: September 15, 2010

Recent Posts

Attach your catalina.out file to your next post so i can have a look at it today. I will see if i check what the problem is but i suggest that you try adding the table into the recent stable release 6.0.6 to check if it works with that.
chau thang
RE: Unable to locate deployment context from portlet properties
March 18, 2011 9:43 AM
Answer

chau thang

Rank: New Member

Posts: 7

Join Date: March 17, 2011

Recent Posts

i only find catalina and i am not see file catalina.out
i will download version 6.0.6 and use try.
I am doing a research technology Vaadin when create project plugin portlet with Vaadin, the system need version 6.1 . i am not know version 6.0.6 is support ?
thank
Attachments: catalina.bat (11.5k)
chau thang
RE: Unable to locate deployment context from portlet properties
April 29, 2011 7:57 PM
Answer

chau thang

Rank: New Member

Posts: 7

Join Date: March 17, 2011

Recent Posts

I found solution for problem. we are create in docroot/src a file portlet.properties with content empty.
stephan t
RE: Unable to locate deployment context from portlet properties
August 30, 2011 12:00 AM
Answer

stephan t

Rank: Junior Member

Posts: 48

Join Date: October 19, 2010

Recent Posts

This is great. Thank you for this solution, which I feel should be seen as kind of a workaround.

I came from 6 EE SP1 and upgraded to 6 EE SP2 and suddenly my custom services threw this exact exception. (I had to do a change from using a static variable to using the getServletContextName() method in one of my service implementations.)

I was surprised that portlets suddenly don't work when installing a new service pack. I mean, it's no major upgrade and yet there are many issues.

Again thanks for your help.
Stephan
stephan t
RE: Unable to locate deployment context from portlet properties
August 30, 2011 12:02 AM
Answer

stephan t

Rank: Junior Member

Posts: 48

Join Date: October 19, 2010

Recent Posts

oh and it looks like somebody is taking care of it: http://issues.liferay.com/browse/LPS-20441
Christopher Jimenez
RE: Unable to locate deployment context from portlet properties
January 5, 2012 9:30 AM
Answer

Christopher Jimenez

Rank: New Member

Posts: 10

Join Date: December 23, 2011

Recent Posts

chau thang:
I found solution for problem. we are create in docroot/src a file portlet.properties with content empty.


Thanks!!! It works... and It's weak