Foros de discusión

Build successful - not deployed

Ramgopal Menon, modificado hace 11 años.

Build successful - not deployed

New Member Mensajes: 11 Fecha de incorporación: 23/01/13 Mensajes recientes
Hi!

I'm using running Liferay 6.1 bundled with tomcat on OpneSUSE linux v12.2.
I created a new daintree-timesheet portlet with create.sh script giving a BUILD SUCCESSFUL message .
But when I deploy the portlet with the command ant deploy, it shows a NumberFormatException and there is no message stating that the .war file is being deployed.
I couldn't find the new portlet under the Samples meno of the Add menu of Liferay page.
Is there a solution?

The log of ant deploy is below:

ramgopalm@linux-67hx:~/portletcodehome/plugins/liferay-plugins-sdk-6.1.1/portlets/daintree-timesheets-portlet> ant deploy
Buildfile: /home/ramgopalm/portletcodehome/plugins/liferay-plugins-sdk-6.1.1/portlets/daintree-timesheets-portlet/build.xml

compile:

merge:

merge:

war:

build-css:
     [java] Feb 20, 2013 10:59:33 a.m. com.liferay.portal.kernel.log.Jdk14LogImpl info
     [java] INFO: No server detected
     [java] Loading jar:file:/home/ramgopalm/portletcodehome/bundles/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
     [java] Feb 20, 2013 10:59:34 a.m. com.liferay.portal.kernel.log.Jdk14LogImpl info
     [java] INFO: Global shared lib directory /home/ramgopalm/portletcodehome/plugins/liferay-plugins-sdk-6.1.1/lib/
     [java] Feb 20, 2013 10:59:34 a.m. com.liferay.portal.kernel.log.Jdk14LogImpl info
     [java] INFO: Global lib directory /home/ramgopalm/portletcodehome/bundles/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/lib/ext/
     [java] Feb 20, 2013 10:59:34 a.m. com.liferay.portal.kernel.log.Jdk14LogImpl info
     [java] INFO: Portal lib directory /home/ramgopalm/portletcodehome/bundles/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/
     [java] Loading jar:file:/home/ramgopalm/portletcodehome/bundles/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
     [java] Feb 20, 2013 10:59:36 a.m. com.liferay.portal.kernel.log.Jdk14LogImpl info
     [java] INFO: Properties for portal loaded from [jar:file:/home/ramgopalm/portletcodehome/bundles/liferay-portal-6.1.1-ce-ga2/tomcat-7.0.27/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties]
     [java] Unable to parse /home/ramgopalm/portletcodehome/plugins/liferay-plugins-sdk-6.1.1/portlets/daintree-timesheets-portlet/docroot/css/main.css
     [java] java.lang.NumberFormatException: invalid character at position 2 in 08
     [java]    at java.lang.Integer.parseInt(libgcj.so.12)
     [java]    at java.lang.Integer.decode(libgcj.so.12)
     [java]    at java.util.Formatter.parseInt(libgcj.so.12)
     [java]    at java.util.Formatter.parseArgumentIndex(libgcj.so.12)
     [java]    at java.util.Formatter.format(libgcj.so.12)
     [java]    at java.util.Formatter.format(libgcj.so.12)
     [java]    at java.lang.String.format(libgcj.so.12)
     [java]    at java.lang.String.format(libgcj.so.12)
     [java]    at org.jruby.RubyModule.calculateFullName(RubyModule.java:380)
     [java]    at org.jruby.RubyModule.calculateName(RubyModule.java:373)
     [java]    at org.jruby.RubyModule.getName(RubyModule.java:367)
     [java]    at org.jruby.RubyModule.to_s(RubyModule.java:1692)
     [java]    at org.jruby.RubyModule.freeze(RubyModule.java:1727)
     [java]    at org.jruby.Ruby.init(Ruby.java:1075)
     [java]    at org.jruby.Ruby.newInstance(Ruby.java:186)
     [java]    at org.jruby.embed.internal.LocalContext.getThreadSafeRuntime(LocalContext.java:69)
     [java]    at org.jruby.embed.internal.ThreadSafeLocalContextProvider.getRuntime(ThreadSafeLocalContextProvider.java:61)
     [java]    at org.jruby.embed.ScriptingContainer.put(ScriptingContainer.java:1091)
     [java]    at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:169)
     [java]    at com.liferay.portal.scripting.ruby.RubyExecutor.eval(RubyExecutor.java:121)
     [java]    at com.liferay.portal.tools.SassToCssBuilder._parseSassFile(SassToCssBuilder.java:232)
     [java]    at com.liferay.portal.tools.SassToCssBuilder._parseSassDirectory(SassToCssBuilder.java:194)
     [java]    at com.liferay.portal.tools.SassToCssBuilder.<init>(SassToCssBuilder.java:132)
     [java]    at com.liferay.portal.tools.SassToCssBuilder.main(SassToCssBuilder.java:88)

compile:

merge:

merge:

build-common-plugin.war:
   [delete] Deleting: /home/ramgopalm/portletcodehome/plugins/liferay-plugins-sdk-6.1.1/dist/daintree-timesheets-portlet-6.1.1.1.war

clean-portal-dependencies:
      [zip] Building zip: /home/ramgopalm/portletcodehome/plugins/liferay-plugins-sdk-6.1.1/dist/daintree-timesheets-portlet-6.1.1.1.war

deploy:
     [copy] Copying 1 file to /home/ramgopalm/portletcodehome/bundles/liferay-portal-6.1.1-ce-ga2/deploy

BUILD SUCCESSFUL
Total time: 29 seconds</init>


Thanks!
Ram
Ramgopal Menon, modificado hace 11 años.

RE: Build successful - not deployed

New Member Mensajes: 11 Fecha de incorporación: 23/01/13 Mensajes recientes
My main.css file was blank, so I copied contents fromthe IFrame portlet.
But this also didn't work.
Could something be wrong with Apache Ant as well?
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: Build successful - not deployed

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
It's probably not your css file. It's your program. You probably have some coding error. Can't say too much else because you didn't attach any source.
Ramgopal Menon, modificado hace 11 años.

RE: Build successful - not deployed

New Member Mensajes: 11 Fecha de incorporación: 23/01/13 Mensajes recientes
Hi Hitoshi,

I used the same procedure to create the Hello World Portlet.
I have not created any source for the hello world portlet.
The create.sh script does that.
It still did not work.
It's that same case with my daintree timesheets portlet. No new source.
Any other solutions?

This is my build.xml file:
<!--?xml version="1.0"?-->


<project name="hello-world-portlet" basedir="." default="deploy">
	<import file="../build-common-portlet.xml" />
</project>


This is my view.jsp file:
&lt;%
/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
%&gt;

&lt;%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %&gt;

<portlet:defineobjects />

This is the <b>Hello World</b> portlet.


main.js is blank. WHat other files do you need?

Thanks,
Ram
asif aftab, modificado hace 9 años.

RE: Build successful - not deployed

Regular Member Mensajes: 123 Fecha de incorporación: 2/09/13 Mensajes recientes
I have the same problem upto build successful is ok after that no message about deployment, if I used direct deploy then it is ok. Please help me.