Foros de discusión

Service Builder

ildar i, modificado hace 12 años.

Service Builder

Regular Member Mensajes: 158 Fecha de incorporación: 12/12/11 Mensajes recientes
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?


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
	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:383)
	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
09:47:09,035 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 2.
09:47:09,039 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
09:47:09,116 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:383)
	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
09:47:09,617 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 3.
09:47:09,621 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
09:47:09,687 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:383)
	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
09:47:10,188 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 4.
09:47:10,198 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
09:47:10,290 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:383)
	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
09:47:10,791 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 5.
09:47:10,801 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
09:47:10,890 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:383)
	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
09:47:11,391 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 6.
09:47:11,401 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
09:47:11,491 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:383)
	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
09:47:11,991 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 7.
09:47:12,001 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
09:47:12,150 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:383)
	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
09:47:12,650 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 8.
09:47:12,660 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
09:47:12,728 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:383)
	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
09:47:13,228 INFO  [AutoDeployDir:172] Processing Editbase-portlet.xml. This is attempt 9.
09:47:13,238 INFO  [PortletExplodedTomcatListener:60] Modifying portlets for E:\b4\work\bundles\deploy\Editbase-portlet.xml
09:47:13,322 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:383)
	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
09:47:13,322 INFO  [AutoDeployDir:203] Add Editbase-portlet.xml to the blacklist
thumbnail
Gregory Amerson, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 1123 Fecha de incorporación: 16/02/10 Mensajes recientes
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.
thumbnail
Juan Gonzalez P, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
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.
thumbnail
Gregory Amerson, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 1123 Fecha de incorporación: 16/02/10 Mensajes recientes
So this is on 6.1 trunk? Are you deploying with "ant deploy" from command line?
thumbnail
Juan Gonzalez P, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
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.
thumbnail
Gregory Amerson, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 1123 Fecha de incorporación: 16/02/10 Mensajes recientes
Can you post your exact steps to reproduce the error? I want to make sure I'm testing the right sequence of steps.
thumbnail
Juan Gonzalez P, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
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.
thumbnail
Juan Gonzalez P, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
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?
thumbnail
Juan Gonzalez P, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
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
thumbnail
Gregory Amerson, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 1123 Fecha de incorporación: 16/02/10 Mensajes recientes
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?
thumbnail
Juan Gonzalez P, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
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?
thumbnail
Gregory Amerson, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 1123 Fecha de incorporación: 16/02/10 Mensajes recientes
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.
thumbnail
Juan Gonzalez P, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
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!
thumbnail
Juan Gonzalez P, modificado hace 12 años.

RE: Service Builder

Liferay Legend Mensajes: 3089 Fecha de incorporación: 28/10/08 Mensajes recientes
Thanks to Greg Amerson, this error should be fixed now:

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