Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Service Builder (problem: PORTLET DISAPPEARS) l ll January 9, 2012 1:16 PM
RE: Service Builder (problem: PORTLET DISAPPEARS) Raja Nagendra Kumar December 12, 2011 8:29 PM
RE: Service Builder (problem: PORTLET DISAPPEARS) Nagendra Kumar Busam December 12, 2011 9:30 PM
RE: Service Builder (problem: PORTLET DISAPPEARS) l ll December 12, 2011 10:29 PM
RE: Service Builder (problem: PORTLET DISAPPEARS) Nagendra Kumar Busam December 12, 2011 11:03 PM
RE: Service Builder (problem: PORTLET DISAPPEARS) l ll December 13, 2011 12:09 AM
RE: Service Builder (problem: PORTLET DISAPPEARS) Nagendra Kumar Busam December 13, 2011 12:19 AM
RE: Service Builder (problem: PORTLET DISAPPEARS) Juan Gonzalez December 13, 2011 12:26 AM
RE: Service Builder (problem: PORTLET DISAPPEARS) l ll December 13, 2011 1:42 AM
RE: Service Builder (problem: PORTLET DISAPPEARS) Anup Krishnan December 14, 2011 8:35 PM
RE: Service Builder (problem: PORTLET DISAPPEARS) Juan Gonzalez January 9, 2012 1:48 PM
RE: Service Builder (problem: PORTLET DISAPPEARS) Krzysztof Gołębiowski April 19, 2012 8:01 AM
RE: Service Builder (problem: PORTLET DISAPPEARS) Ravi Kumar Gupta April 19, 2012 8:07 AM
RE: Service Builder (problem: PORTLET DISAPPEARS) Krzysztof Gołębiowski April 19, 2012 8:27 AM
RE: Service Builder (problem: PORTLET DISAPPEARS) David H Nebinger April 19, 2012 8:56 AM
RE: Service Builder (problem: PORTLET DISAPPEARS) Krzysztof Gołębiowski April 19, 2012 10:08 AM
RE: Service Builder (problem: PORTLET DISAPPEARS) David H Nebinger April 19, 2012 11:54 AM
RE: Service Builder (problem: PORTLET DISAPPEARS) Krzysztof Gołębiowski April 19, 2012 12:12 PM
RE: Service Builder (problem: PORTLET DISAPPEARS) David H Nebinger April 19, 2012 12:47 PM
RE: Service Builder (problem: PORTLET DISAPPEARS) Krzysztof Gołębiowski April 19, 2012 11:50 PM
l ll
Service Builder (problem: PORTLET DISAPPEARS)
January 9, 2012 1:16 PM
Answer

l ll

Rank: Junior Member

Posts: 71

Join Date: December 12, 2011

Recent Posts

Liferay: 6.1 b4

1. Run Tomcat.
2. Create MVC portlet with superclass javax.portlet.GenericPortlet .
3. Add the portlet to the server, which appears in the dropdownlist.
4. Create a service over the portlet.
5. Edit the file service.xml (change <!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.0.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_0_0.dtd">
to <!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.1.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_1_0.dtd">).
6. Press "Build" button (either from Eclipse or from command line (cmd) "ant service-build").
7. A table should be created in a database.
8. The portlet disappers from the LifeRay list. Redeploy does not help, there are a lot of errors.

Could you help me to solve this problem, please?

  1
  209:47:08,457 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
  309:47:08,533 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
  4com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
  5    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:39)
  6    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatListener.deploy(PortletExplodedTomcatListener.java:63)
  7    at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.deploy(BaseExplodedTomcatListener.java:61)
  8    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
  9    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:222)
 10    at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:50)
 11Caused by: java.lang.NullPointerException
 12    at com.liferay.portal.tools.deploy.BaseDeployer.copyProperties(BaseDeployer.java:383)
 13    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:512)
 14    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:696)
 15    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:35)
 16    ... 5 more
 1709:47:09,035 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 2.
 1809:47:09,039 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
 1909:47:09,116 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
 20com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
 21    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:39)
 22    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatListener.deploy(PortletExplodedTomcatListener.java:63)
 23    at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.deploy(BaseExplodedTomcatListener.java:61)
 24    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
 25    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:222)
 26    at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:50)
 27Caused by: java.lang.NullPointerException
 28    at com.liferay.portal.tools.deploy.BaseDeployer.copyProperties(BaseDeployer.java:383)
 29    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:512)
 30    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:696)
 31    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:35)
 32    ... 5 more
 3309:47:09,617 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 3.
 3409:47:09,621 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
 3509:47:09,687 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
 36com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
 37    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:39)
 38    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatListener.deploy(PortletExplodedTomcatListener.java:63)
 39    at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.deploy(BaseExplodedTomcatListener.java:61)
 40    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
 41    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:222)
 42    at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:50)
 43Caused by: java.lang.NullPointerException
 44    at com.liferay.portal.tools.deploy.BaseDeployer.copyProperties(BaseDeployer.java:383)
 45    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:512)
 46    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:696)
 47    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:35)
 48    ... 5 more
 4909:47:10,188 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 4.
 5009:47:10,198 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
 5109:47:10,290 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
 52com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
 53    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:39)
 54    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatListener.deploy(PortletExplodedTomcatListener.java:63)
 55    at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.deploy(BaseExplodedTomcatListener.java:61)
 56    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
 57    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:222)
 58    at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:50)
 59Caused by: java.lang.NullPointerException
 60    at com.liferay.portal.tools.deploy.BaseDeployer.copyProperties(BaseDeployer.java:383)
 61    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:512)
 62    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:696)
 63    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:35)
 64    ... 5 more
 6509:47:10,791 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 5.
 6609:47:10,801 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
 6709:47:10,890 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
 68com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
 69    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:39)
 70    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatListener.deploy(PortletExplodedTomcatListener.java:63)
 71    at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.deploy(BaseExplodedTomcatListener.java:61)
 72    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
 73    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:222)
 74    at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:50)
 75Caused by: java.lang.NullPointerException
 76    at com.liferay.portal.tools.deploy.BaseDeployer.copyProperties(BaseDeployer.java:383)
 77    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:512)
 78    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:696)
 79    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:35)
 80    ... 5 more
 8109:47:11,391 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 6.
 8209:47:11,401 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
 8309:47:11,491 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
 84com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
 85    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:39)
 86    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatListener.deploy(PortletExplodedTomcatListener.java:63)
 87    at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.deploy(BaseExplodedTomcatListener.java:61)
 88    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
 89    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:222)
 90    at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:50)
 91Caused by: java.lang.NullPointerException
 92    at com.liferay.portal.tools.deploy.BaseDeployer.copyProperties(BaseDeployer.java:383)
 93    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:512)
 94    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:696)
 95    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:35)
 96    ... 5 more
 9709:47:11,991 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 7.
 9809:47:12,001 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
 9909:47:12,150 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
100com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
101    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:39)
102    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatListener.deploy(PortletExplodedTomcatListener.java:63)
103    at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.deploy(BaseExplodedTomcatListener.java:61)
104    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
105    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:222)
106    at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:50)
107Caused by: java.lang.NullPointerException
108    at com.liferay.portal.tools.deploy.BaseDeployer.copyProperties(BaseDeployer.java:383)
109    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:512)
110    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:696)
111    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:35)
112    ... 5 more
11309:47:12,650 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 8.
11409:47:12,660 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
11509:47:12,728 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
116com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
117    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:39)
118    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatListener.deploy(PortletExplodedTomcatListener.java:63)
119    at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.deploy(BaseExplodedTomcatListener.java:61)
120    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
121    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:222)
122    at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:50)
123Caused by: java.lang.NullPointerException
124    at com.liferay.portal.tools.deploy.BaseDeployer.copyProperties(BaseDeployer.java:383)
125    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:512)
126    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:696)
127    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:35)
128    ... 5 more
12909:47:13,228 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 9.
13009:47:13,238 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
13109:47:13,322 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
132com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
133    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:39)
134    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatListener.deploy(PortletExplodedTomcatListener.java:63)
135    at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.deploy(BaseExplodedTomcatListener.java:61)
136    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
137    at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:222)
138    at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:50)
139Caused by: java.lang.NullPointerException
140    at com.liferay.portal.tools.deploy.BaseDeployer.copyProperties(BaseDeployer.java:383)
141    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:512)
142    at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:696)
143    at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:35)
144    ... 5 more
14509:47:13,322 INFO  [AutoDeployDir:203] Add Editbase-portlet.xml to the blacklist
Raja Nagendra Kumar
RE: Service Builder (problem: PORTLET DISAPPEARS)
December 12, 2011 8:29 PM
Answer

Raja Nagendra Kumar

Rank: Expert

Posts: 484

Join Date: March 1, 2006

Recent Posts

Check your portlets init() method.. keep it empty and try... (no exception should be thrown during deploy or while adding this portlet to a new page)

Some thing is wrong in your init() method.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
Nagendra Kumar Busam
RE: Service Builder (problem: PORTLET DISAPPEARS)
December 12, 2011 9:30 PM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 637

Join Date: July 7, 2009

Recent Posts

Can you try to build the services from command prompt & deploy. If you can please add your source code
l ll
RE: Service Builder (problem: PORTLET DISAPPEARS)
December 12, 2011 10:29 PM
Answer

l ll

Rank: Junior Member

Posts: 71

Join Date: December 12, 2011

Recent Posts

 1
 2E:\b4\work\sdk\portlets>create newportlet "My New Portlet"
 3Buildfile: E:\b4\work\sdk\portlets\build.xml
 4
 5create:
 6     [copy] Copying 9 files to E:\b4\work\sdk\portlets\newportlet-portlet
 7    [mkdir] Created dir: E:\b4\work\sdk\portlets\newportlet-portlet\docroot\WEB-INF\tld
 8     [copy] Copying 9 files to E:\b4\work\sdk\portlets\newportlet-portlet\docroot\WEB-INF\tld
 9
10BUILD SUCCESSFUL
11Total time: 0 seconds
12
13
14E:\b4\work\sdk\portlets>cd newportlet-portlet
15
16E:\b4\work\sdk\portlets\newportlet-portlet>create (build-service ??)


As a service?
Nagendra Kumar Busam
RE: Service Builder (problem: PORTLET DISAPPEARS)
December 12, 2011 11:03 PM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 637

Join Date: July 7, 2009

Recent Posts

Initial Service generation part you can do it from Liferay IDE. Once you generate sample service.xml using Liferay IDE. Try to build that service from command prompt

Try below commands from command prompt
> ant build-service
> ant clean deploy
l ll
RE: Service Builder (problem: PORTLET DISAPPEARS)
December 13, 2011 12:09 AM
Answer

l ll

Rank: Junior Member

Posts: 71

Join Date: December 12, 2011

Recent Posts

  1
  2E:\b41\sdk\portlets>create Newsp "qwertt"
  3Buildfile: E:\b41\sdk\portlets\build.xml
  4
  5create:
  6     [copy] Copying 9 files to E:\b41\sdk\portlets\Newsp-portlet
  7    [mkdir] Created dir: E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\tld
  8     [copy] Copying 9 files to E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\tld
  9
 10BUILD SUCCESSFUL
 11Total time: 0 seconds
 12
 13E:\b41\sdk\portlets>cd Newsp-portlet
 14
 15E:\b41\sdk\portlets\Newsp-portlet>ant build-service
 16Buildfile: E:\b41\sdk\portlets\Newsp-portlet\build.xml
 17
 18build-service:
 19    [mkdir] Created dir: E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\classes
 20    [mkdir] Created dir: E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\lib
 21    [mkdir] Created dir: E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\service
 22    [mkdir] Created dir: E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\sql
 23    [mkdir] Created dir: E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\src
 24     [echo] Loading jar:file:/E:/b41/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
 25     [echo] 13.12.2011 13:06:00 com.liferay.portal.kernel.log.Jdk14LogImpl info
 26     [echo] INFO: Global lib directory /E:/b41/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/lib/ext/
 27     [echo] 13.12.2011 13:06:00 com.liferay.portal.kernel.log.Jdk14LogImpl info
 28     [echo] INFO: Portal lib directory /E:/b41/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/
 29     [echo] 13:06:00,123 INFO  [EasyConf:122] Refreshed the configuration of all components
 30     [echo] 13:06:00,516 INFO  [ConfigurationLoader:56] Properties for jar:file:/E:/b41/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal loaded from [jar:file:/E:/b41/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/lifer
 31ay/portal/tools/dependencies/portal-tools.properties, file:/E:/b41/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/classes/portal-ext.properties, jar:file:/E:/b41/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
 32     [echo] Loading jar:file:/E:/b41/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
 33     [echo] Loading file:/E:/b41/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/classes/portal-ext.properties
 34     [echo] Loading jar:file:/E:/b41/liferay-portal-6.1.0-ce-b4/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies/portal-tools.properties
 35     [echo] java.lang.NullPointerException
 36     [echo]     at com.liferay.portal.kernel.io.unsync.UnsyncStringReader.<init>(UnsyncStringReader.java:33)
 37     [echo]     at com.liferay.util.xml.XMLSafeReader.<init>(XMLSafeReader.java:25)
 38     [echo]     at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:423)
 39     [echo]     at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:139)
 40     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder._getContentDocument(ServiceBuilder.java:3833)
 41     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder._getContent(ServiceBuilder.java:3756)
 42     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:544)
 43     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.<init>(ServiceBuilder.java:430)
 44     [echo]     at com.liferay.portal.tools.servicebuilder.ServiceBuilder.main(ServiceBuilder.java:146)
 45     [echo]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 46     [echo]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 47     [echo]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 48     [echo]     at java.lang.reflect.Method.invoke(Method.java:597)
 49     [echo]     at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
 50     [echo]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
 51     [echo]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
 52     [echo]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
 53     [echo]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
 54     [echo]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
 55     [echo]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
 56     [echo]     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
 57     [echo]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 58     [echo]     at java.lang.reflect.Method.invoke(Method.java:597)
 59     [echo]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
 60     [echo]     at org.apache.tools.ant.Task.perform(Task.java:348)
 61     [echo]     at org.apache.tools.ant.Target.execute(Target.java:390)
 62     [echo]     at org.apache.tools.ant.Target.performTasks(Target.java:411)
 63     [echo]     at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
 64     [echo]     at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
 65     [echo]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
 66     [echo]     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
 67     [echo]     at org.apache.tools.ant.Main.runBuild(Main.java:809)
 68     [echo]     at org.apache.tools.ant.Main.startAnt(Main.java:217)
 69     [echo]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
 70     [echo]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
 71    [mkdir] Created dir: E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\service-classes
 72
 73compile-java:
 74      [zip] Warning: skipping zip archive E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\lib\Newsp-portlet-service.jar because no files were included.
 75   [delete] Deleting directory E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\service-classes
 76
 77BUILD SUCCESSFUL
 78Total time: 5 seconds
 79
 80
 81E:\b41\sdk\portlets\Newsp-portlet>ant clean deploy
 82Buildfile: E:\b41\sdk\portlets\Newsp-portlet\build.xml
 83
 84clean:
 85   [delete] Deleting directory E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\classes
 86
 87clean-portal-dependencies:
 88
 89compile:
 90
 91merge:
 92    [mkdir] Created dir: E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\classes
 93     [copy] Copying 5 files to E:\b41\sdk\portlets\Newsp-portlet\docroot\WEB-INF\lib
 94
 95compile-java:
 96
 97merge:
 98
 99war:
100    [mkdir] Created dir: E:\b41\sdk\dist
101
102clean-portal-dependencies:
103      [zip] Building zip: E:\b41\sdk\dist\Newsp-portlet-6.1.0.1.war
104
105deploy:
106     [copy] Copying 1 file to E:\b41\liferay-portal-6.1.0-ce-b4\deploy
107
108BUILD SUCCESSFUL
109Total time: 1 second
110
111E:\b41\sdk\portlets\Newsp-portlet>
Nagendra Kumar Busam
RE: Service Builder (problem: PORTLET DISAPPEARS)
December 13, 2011 12:19 AM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 637

Join Date: July 7, 2009

Recent Posts

Did you try to deploy it properly, as it seems you are getting error while creating the portlet itself.
Juan Gonzalez
RE: Service Builder (problem: PORTLET DISAPPEARS)
December 13, 2011 12:26 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1967

Join Date: October 28, 2008

Recent Posts

Nagendra Kumar Busam:
Did you try to deploy it properly, as it seems you are getting error while creating the portlet itself.



I have the same error as the first post of the thread.

I only used Liferay IDE to create service and deploy.

Does that works for you in latest 6.1 sources?
l ll
RE: Service Builder (problem: PORTLET DISAPPEARS)
December 13, 2011 1:42 AM
Answer

l ll

Rank: Junior Member

Posts: 71

Join Date: December 12, 2011

Recent Posts

It appears that an error is initially in the software.
I do not know how to create the "Service Build" via the command line.


E:\b41\sdk\portlets>create Newsp "qwertt"
E:\b41\sdk\portlets>cd Newsp-portlet
E:\b41\sdk\portlets\Newsp-portlet>ant build-service
(errors)
E:\b41\sdk\portlets\Newsp-portlet>ant clean deploy
E:\b41\sdk\portlets\Newsp-portlet>

When shell I create "service.xml" file ?




Regarding my first post, is it possible to find out the problem by analysing logs?

09:47:08,457 INFO [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
09:47:08,533 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
Anup Krishnan
RE: Service Builder (problem: PORTLET DISAPPEARS)
December 14, 2011 8:35 PM
Answer

Anup Krishnan

Rank: New Member

Posts: 9

Join Date: April 14, 2011

Recent Posts

Hi ildar,

When I am trying to execute ant build-service using command prompt, in my Liferay 6.1 b4 , me to getting exactly the same error.
Have you managed to find any resolution to this issue ?

Error excerpt
Loading jar:file:/D:/liferay/liferay-portal-tomcat-6.1/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/D:/liferay/liferay-portal-tomcat-6.1/tomcat-7.0.22/webapps/ROOT/WEB-INF/classes/portal-ext.properties
Loading jar:file:/D:/liferay/liferay-portal-tomcat-6.1/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies
/portal-tools.properties
java.lang.NullPointerException
at com.liferay.portal.kernel.io.unsync.UnsyncStringReader.<init>(UnsyncStringReader.java:33)
at com.liferay.util.xml.XMLSafeReader.<init>(XMLSafeReader.java:25)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:423)
at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:139)

Regards
Anup
Juan Gonzalez
RE: Service Builder (problem: PORTLET DISAPPEARS)
January 9, 2012 1:48 PM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1967

Join Date: October 28, 2008

Recent Posts

Akris K:
Hi ildar,

When I am trying to execute ant build-service using command prompt, in my Liferay 6.1 b4 , me to getting exactly the same error.
Have you managed to find any resolution to this issue ?

Error excerpt
Loading jar:file:/D:/liferay/liferay-portal-tomcat-6.1/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
Loading file:/D:/liferay/liferay-portal-tomcat-6.1/tomcat-7.0.22/webapps/ROOT/WEB-INF/classes/portal-ext.properties
Loading jar:file:/D:/liferay/liferay-portal-tomcat-6.1/tomcat-7.0.22/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/dependencies
/portal-tools.properties
java.lang.NullPointerException
at com.liferay.portal.kernel.io.unsync.UnsyncStringReader.<init>(UnsyncStringReader.java:33)
at com.liferay.util.xml.XMLSafeReader.<init>(XMLSafeReader.java:25)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:423)
at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:139)

Regards
Anup


Forget b4. Download GA and final SDK and re-test. If not, should be a config/XML problem.
Krzysztof Gołębiowski
RE: Service Builder (problem: PORTLET DISAPPEARS)
April 19, 2012 8:01 AM
Answer

Krzysztof Gołębiowski

Rank: Expert

Posts: 412

Join Date: June 25, 2011

Recent Posts

Hello,
Did somebody find the solution for problem with NPE:

...
java.lang.NullPointerException
at com.liferay.portal.kernel.io.unsync.UnsyncStringReader.<init>(UnsyncStringReader.java:33)
...

I am experiencing the same error while building sample (generated by Liferay IDE) service within ext plugin. Both from Eclipse and command line on Liferay 6.1 CE GA1.

Regards,
KG
Ravi Kumar Gupta
RE: Service Builder (problem: PORTLET DISAPPEARS)
April 19, 2012 8:07 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1181

Join Date: June 23, 2009

Recent Posts

Krzysztof Gołębiowski:
Hello,
Did somebody find the solution for problem with NPE:

...
java.lang.NullPointerException
at com.liferay.portal.kernel.io.unsync.UnsyncStringReader.<init>(UnsyncStringReader.java:33)
...

I am experiencing the same error while building sample (generated by Liferay IDE) service within ext plugin. Both from Eclipse and command line on Liferay 6.1 CE GA1.

Regards,
KG



Ext plugins are not to add a service to liferay. They are to modify what is already present in liferay.
Krzysztof Gołębiowski
RE: Service Builder (problem: PORTLET DISAPPEARS)
April 19, 2012 8:27 AM
Answer

Krzysztof Gołębiowski

Rank: Expert

Posts: 412

Join Date: June 25, 2011

Recent Posts

Yeah, but I need to have this service available through all my plugins. As far as I remember, it is hard to achieve that with hooks or portlets (I have to copy service jar's to tomcat/lib/ext manually).

Ravi Kumar Gupta:
Krzysztof Gołębiowski:
Hello,
Did somebody find the solution for problem with NPE:

...
java.lang.NullPointerException
at com.liferay.portal.kernel.io.unsync.UnsyncStringReader.<init>(UnsyncStringReader.java:33)
...

I am experiencing the same error while building sample (generated by Liferay IDE) service within ext plugin. Both from Eclipse and command line on Liferay 6.1 CE GA1.

Regards,
KG



Ext plugins are not to add a service to liferay. They are to modify what is already present in liferay.
David H Nebinger
RE: Service Builder (problem: PORTLET DISAPPEARS)
April 19, 2012 8:56 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7153

Join Date: September 1, 2006

Recent Posts

Krzysztof Gołębiowski:
Yeah, but I need to have this service available through all my plugins. As far as I remember, it is hard to achieve that with hooks or portlets (I have to copy service jar's to tomcat/lib/ext manually).


Totally untrue.

All you need to do is go to the dependent portlet (the one that will be calling the service) and add the project containing the service as a required deployment context (in the liferay-plugin-package.properties file).

No more do you need to copy jars to tomcat/lib/ext (was always a bad practice, required reboots, etc.) and also allows them to deprecate adding services to EXT (it's planned, but I don't know when they will be rolling that out).

So stick with the service in another plugin (i.e. a portlet plugin) and add the required dependency context to the service users.
Krzysztof Gołębiowski
RE: Service Builder (problem: PORTLET DISAPPEARS)
April 19, 2012 10:08 AM
Answer

Krzysztof Gołębiowski

Rank: Expert

Posts: 412

Join Date: June 25, 2011

Recent Posts

Dawid, thanks for your answer, I didn't know that emoticon I tried to create the service within hook plugin, but there is one problem. I am referencing few Liferay entities:

...
<column name="memberEntry" type="Collection" entity="com.liferay.portal.User"
mapping-key="userId" />
...
<reference entity="User" package-path="com.liferay.portal" />
...

Everything looks fine service builder builds the service, war file is generated, but during deployment i get the following exception:

...
Caused by: java.lang.Error: Unresolved compilation problems:
com.liferay.portal.model.impl.UserModelImpl cannot be resolved to a variable
...

Eclipse says the same thing, it cannot find UserModeImpl class. As far as I know, this class is sealed within portal-impl.jar, but I don't think referencing this jar within portlet/hook plugin is a good idea (liferay ant deploy task won't allow that anyway). What can I do with that situation?

Regards,
KG
David H Nebinger
RE: Service Builder (problem: PORTLET DISAPPEARS)
April 19, 2012 11:54 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7153

Join Date: September 1, 2006

Recent Posts

Somehow you're accessing the implementation class (a no-no) when you should just stick w/ the interface class.

A full stack trace may help pinpoint where the failure is occurring...
Krzysztof Gołębiowski
RE: Service Builder (problem: PORTLET DISAPPEARS)
April 19, 2012 12:12 PM
Answer

Krzysztof Gołębiowski

Rank: Expert

Posts: 412

Join Date: June 25, 2011

Recent Posts

Seems that Service Builder generates wrong code. SB generated class - RecipientsListPersistenceImpl - contains references to UserModelImpl. Examples and full stacktrace included below:

Examples from RecipientsListPersistenceImpl

public static final FinderPath FINDER_PATH_GET_USERS = new FinderPath(com.liferay.portal.model.impl.UserModelImpl.ENTITY_CACHE_ENABLED,
com.liferay.portal.model.impl.UserModelImpl.FINDER_CACHE_ENABLED,
com.liferay.portal.model.impl.UserImpl.class,
com.liferay.portal.service.persistence.UserPersistenceImpl.FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION,
"getUsers",
new String[] {
Long.class.getName(), "java.lang.Integer", "java.lang.Integer",
"com.liferay.portal.kernel.util.OrderByComparator"
});

public List<com.liferay.portal.model.User> getUsers(long pk, int start,
int end, OrderByComparator orderByComparator) throws SystemException {
...
SQLQuery q = session.createSQLQuery(sql);

q.addEntity("Portal_User",
com.liferay.portal.model.impl.UserImpl.class);

QueryPos qPos = QueryPos.getInstance(q);

qPos.add(pk);
...
}


Stacktrace

18:59:17,540 ERROR [ContextLoader:227] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pl.kgolebiowski.recipientsList.service.RecipientsListLocalService' defined in ServletContext resource [/WEB-INF/c
lasses/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pl.kgolebiowski.recipient
sList.service.persistence.RecipientsListPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is org.springfram
ework.beans.BeanInstantiationException: Could not instantiate bean class [pl.kgolebiowski.recipientsList.service.persistence.RecipientsListPersistenceImpl]: Constructor threw exception; nested exceptio
n is java.lang.Error: Unresolved compilation problems:
com.liferay.portal.model.impl.UserModelImpl cannot be resolved to a variable
com.liferay.portal.model.impl.UserModelImpl cannot be resolved to a variable
com.liferay.portal.model.impl.UserImpl cannot be resolved to a type
com.liferay.portal.service.persistence.UserPersistenceImpl cannot be resolved to a variable
com.liferay.portal.model.impl.UserImpl cannot be resolved to a type
com.liferay.portal.model.impl.UserModelImpl cannot be resolved to a variable
com.liferay.portal.model.impl.UserModelImpl cannot be resolved to a variable
com.liferay.portal.model.impl.UserImpl cannot be resolved to a type
com.liferay.portal.service.persistence.UserPersistenceImpl cannot be resolved to a variable
com.liferay.portal.model.impl.UserModelImpl cannot be resolved to a variable
com.liferay.portal.model.impl.UserModelImpl cannot be resolved to a variable
com.liferay.portal.model.impl.UserImpl cannot be resolved to a type
com.liferay.portal.service.persistence.UserPersistenceImpl cannot be resolved to a variable

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:99)
at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.doPortalInit(PortalClassLoaderServletContextListener.java:91)
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:53)
at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:52)
at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.contextInitialized(PortalClassLoaderServletContextListener.java:50)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4765)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5260)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:842)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1095)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1617)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
David H Nebinger
RE: Service Builder (problem: PORTLET DISAPPEARS)
April 19, 2012 12:47 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7153

Join Date: September 1, 2006

Recent Posts

Krzysztof Gołębiowski:
Seems that Service Builder generates wrong code. SB generated class - RecipientsListPersistenceImpl - contains references to UserModelImpl.


Yep, that's the problem alright. SB is trying to use the internal classes for which it has no access.
Krzysztof Gołębiowski
RE: Service Builder (problem: PORTLET DISAPPEARS)
April 19, 2012 11:50 PM
Answer

Krzysztof Gołębiowski

Rank: Expert

Posts: 412

Join Date: June 25, 2011

Recent Posts

Thanks for your help David, I submitted this bug to Liferay JIRA (http://issues.liferay.com/browse/LPS-26849).