Forums

Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
l ll
Service Builder
January 4, 2012 5:48 PM
Answer

l ll

Rank: Junior Member

Posts: 71

Join Date: December 12, 2011

Recent Posts

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
Gregory Amerson
RE: Service Builder
December 13, 2011 7:33 AM
Answer

Gregory Amerson

LIFERAY STAFF

Rank: Liferay Master

Posts: 921

Join Date: February 16, 2010

Recent Posts

Can you post a sample project where I can replicate this error? If I can replicate it on my side I can try to see what the issue it.
Juan Gonzalez
RE: Service Builder
December 13, 2011 7:44 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1937

Join Date: October 28, 2008

Recent Posts

Gregory Amerson:
Can you post a sample project where I can replicate this error? If I can replicate it on my side I can try to see what the issue it.



Hi Gregory,

It happens in my environment too.

Not doing anything special. Just create portlet, then create service, create classes (Build services), build service, and deploy. I do everything with Liferay IDE in Eclipse Helios (not from command line).
In my case I don't change service builder dtd (I am using 6_0_0).

My environment:

Ubuntu Linux
SDK downloaded from latest sources (plugins), and Liferay from latest sources too.
Gregory Amerson
RE: Service Builder
December 13, 2011 8:01 AM
Answer

Gregory Amerson

LIFERAY STAFF

Rank: Liferay Master

Posts: 921

Join Date: February 16, 2010

Recent Posts

So this is on 6.1 trunk? Are you deploying with "ant deploy" from command line?
Juan Gonzalez
RE: Service Builder
December 13, 2011 8:02 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1937

Join Date: October 28, 2008

Recent Posts

Gregory Amerson:
So this is on 6.1 trunk? Are you deploying with "ant deploy" from command line?


Yes. I am deploying using Liferay IDE, "Add and Remove" and then select my portlet with service inside.
Gregory Amerson
RE: Service Builder
December 13, 2011 8:08 AM
Answer

Gregory Amerson

LIFERAY STAFF

Rank: Liferay Master

Posts: 921

Join Date: February 16, 2010

Recent Posts

Can you post your exact steps to reproduce the error? I want to make sure I'm testing the right sequence of steps.
Juan Gonzalez
RE: Service Builder
December 13, 2011 8:42 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1937

Join Date: October 28, 2008

Recent Posts

Gregory Amerson:
Can you post your exact steps to reproduce the error? I want to make sure I'm testing the right sequence of steps.



Ok thanks very much Gregory.

1-Download SDK from SVN to a directory (example: /home/user/liferay-SVN/plugins)
2-Download Liferay from SVN to a directory (example: /home/user/liferay-SVN/trunk).
3-Configure app.server.properties in liferay SVN (trunk) pointing to /opt/apache-tomcat-7.0.23. Compile Liferay using "ant all".
4-Start Liferay portal in tomcat 7.0.23
5-Liferay IDE. Create -> New -> Liferay Project. Then configure new Liferay SDK pointing t /home/user/liferay-SVN/plugins
Then configure Liferay Runtime of type Liferay 6.1 CE Tomcat 7, pointing to /opt/apache-tomcat.7.0.23.
Let the field "Liferay Tomcat bundle zip" empty, then click ok.
6-Then, choose "Portlet" type, next dialog select "Liferay MVC", click OK.
7-Once the project exists, create a new service. New -> Liferay Service Builder. Fill the fields with simple values "com.test", "test", Create Sample Entity.
8-Click in Build services button.
9-After all is generated, deploy.

Gregory, now I have this strange error:

16:37:21,525 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: ../conf/Catalina/localhost/Prueba-srv-portlet.xml (No such file or directory)
com.liferay.portal.kernel.deploy.auto.AutoDeployException: ../conf/Catalina/localhost/Prueba-srv-portlet.xml (No such file or directory)
at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.copyContextFile(BaseExplodedTomcatListener.java:56)
at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatListener.deploy(PortletExplodedTomcatListener.java:70)
at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.deploy(BaseExplodedTomcatListener.java:61)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:222)
at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:50)

I deleted build.user.properties from plugins, thinking that could be the cause, but this error appeared.
Juan Gonzalez
RE: Service Builder
December 13, 2011 8:51 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1937

Join Date: October 28, 2008

Recent Posts

Gregory,

I've seen these JVM option in Server startup:

-Dexternal-properties="/opt/portal-ide.properties"

And this file doesn't exist. Where I can modify this file in Eclipse?
Juan Gonzalez
RE: Service Builder
December 13, 2011 8:53 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1937

Join Date: October 28, 2008

Recent Posts

Wow, curious!

After deleting that JVM option I have the "old" error:

16:53:19,007 INFO [AutoDeployDir:172] Processing Prueba-srv-portlet.xml. This is attempt 9.
16:53:19,013 INFO [PortletExplodedTomcatListener:60] Modifying portlets for /opt/deploy/Prueba-srv-portlet.xml
16:53:19,124 ERROR [AutoDeployDir:197] com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
com.liferay.portal.kernel.deploy.auto.AutoDeployException: java.lang.NullPointerException
at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:39)
at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatListener.deploy(PortletExplodedTomcatListener.java:63)
at com.liferay.portal.deploy.auto.exploded.tomcat.BaseExplodedTomcatListener.deploy(BaseExplodedTomcatListener.java:61)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:180)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:222)
at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:50)
Caused by: java.lang.NullPointerException
at com.liferay.portal.tools.deploy.BaseDeployer.copyProperties(BaseDeployer.java:385)
at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:512)
at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:696)
at com.liferay.portal.deploy.auto.exploded.tomcat.PortletExplodedTomcatDeployer.explodedTomcatDeploy(PortletExplodedTomcatDeployer.java:35)
... 5 more
16:53:19,124 INFO [AutoDeployDir:203] Add Prueba-srv-portlet.xml to the blacklist
Gregory Amerson
RE: Service Builder
December 13, 2011 9:05 AM
Answer

Gregory Amerson

LIFERAY STAFF

Rank: Liferay Master

Posts: 921

Join Date: February 16, 2010

Recent Posts

Juan Gonzalez P:
Gregory,

I've seen these JVM option in Server startup:

-Dexternal-properties="/opt/portal-ide.properties"

And this file doesn't exist. Where I can modify this file in Eclipse?



This file is generated upon launch of the Liferay-Tomcat server. If it isn't there it maybe because the IDE can't write that file. Just wanted to confirm that the user that is launching Eclipse has permission to write files into the /opt folder. Is that true?
Juan Gonzalez
RE: Service Builder
December 13, 2011 9:08 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1937

Join Date: October 28, 2008

Recent Posts

Gregory Amerson:
Juan Gonzalez P:
Gregory,

I've seen these JVM option in Server startup:

-Dexternal-properties="/opt/portal-ide.properties"

And this file doesn't exist. Where I can modify this file in Eclipse?



This file is generated upon launch of the Liferay-Tomcat server. If it isn't there it maybe because the IDE can't write that file. Just wanted to confirm that the user that is launching Eclipse has permission to write files into the /opt folder. Is that true?


No, it hasn't got permission. How can I change that directory?
Gregory Amerson
RE: Service Builder
December 13, 2011 9:40 AM
Answer

Gregory Amerson

LIFERAY STAFF

Rank: Liferay Master

Posts: 921

Join Date: February 16, 2010

Recent Posts

Juan Gonzalez P:
Gregory Amerson:
Juan Gonzalez P:
Gregory,

I've seen these JVM option in Server startup:

-Dexternal-properties="/opt/portal-ide.properties"

And this file doesn't exist. Where I can modify this file in Eclipse?



This file is generated upon launch of the Liferay-Tomcat server. If it isn't there it maybe because the IDE can't write that file. Just wanted to confirm that the user that is launching Eclipse has permission to write files into the /opt folder. Is that true?


No, it hasn't got permission. How can I change that directory?


There is also a bigger problem with using a non-writiable directory is that the IDE needs to write config files out to the tomcat directory. Unfortunately there are several problems with using a read-only directory. I believe the only way going forward would be just to create a tomcat bundle in your local user home.
Juan Gonzalez
RE: Service Builder
December 13, 2011 10:17 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1937

Join Date: October 28, 2008

Recent Posts

Gregory Amerson:
Juan Gonzalez P:
Gregory Amerson:
Juan Gonzalez P:
Gregory,

I've seen these JVM option in Server startup:

-Dexternal-properties="/opt/portal-ide.properties"

And this file doesn't exist. Where I can modify this file in Eclipse?



This file is generated upon launch of the Liferay-Tomcat server. If it isn't there it maybe because the IDE can't write that file. Just wanted to confirm that the user that is launching Eclipse has permission to write files into the /opt folder. Is that true?


No, it hasn't got permission. How can I change that directory?


There is also a bigger problem with using a non-writiable directory is that the IDE needs to write config files out to the tomcat directory. Unfortunately there are several problems with using a read-only directory. I believe the only way going forward would be just to create a tomcat bundle in your local user home.


Ok Greg, after moving all to my personal directory, problem solved. Have to tweak a little my build.properties to point to new dir, but all working ok.

Thanks very very much for your help Gregory!
Juan Gonzalez
RE: Service Builder
December 17, 2011 1:48 PM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1937

Join Date: October 28, 2008

Recent Posts

Thanks to Greg Amerson, this error should be fixed now:

http://issues.liferay.com/browse/LPS-24212