Grails portlets deployment Issue - deployment

I'm running one grails portlet on liferay 5.2.3 successfully, now i developed another grails portlet and hot deployed, but the portlet showed me some errors and not working says "portlet is temporarily available" .
I tried restart server but still only one portlet is running and other is not running .
This is the log when deployed another portlet (log cropped).
10-02-16 19:36:59:484 - { INFO} com.liferay.portal.plugin.PluginPackageUtil Finished checking for available updates in 63 ms
java.lang.NullPointerException
at org.codehaus.grails.portlets.container.AbstractPortletContainerAdapter.getInstance(AbstractPortletContainerAdapter.java:27)
at org.codehaus.grails.portlets.GrailsPortletApplicationContext.initPortletContainerAdapter(GrailsPortletApplicationContext.java:37)
at org.codehaus.grails.portlets.GrailsPortletApplicationContext.setPortletContext(GrailsPortletApplicationContext.java:28)
at org.springframework.web.portlet.FrameworkPortlet.createPortletApplicationContext(FrameworkPortlet.java:339)
at org.springframework.web.portlet.FrameworkPortlet.initPortletApplicationContext(FrameworkPortlet.java:291)
at org.springframework.web.portlet.FrameworkPortlet.initPortletBean(FrameworkPortlet.java:264)
at org.springframework.web.portlet.GenericPortletBean.init(GenericPortletBean.java:115)
at javax.portlet.GenericPortlet.init(GenericPortlet.java:107)
at com.liferay.portlet.InvokerPortletImpl.init(InvokerPortletImpl.java:250)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:853)
at java.lang.Thread.run(Thread.java:619)
10-02-16 19:37:02:333 - {ERROR} portal-web.docroot.html.portal.render_portlet.jsp java.lang.NullPointerException
Could any one tell me whats going wrong and how can we run multiple grails portlets on Liferay.
thanks in advance .

Related

Whille deploying RESTful webservice, Shows error JdbcDataSource. not found

I have been trying to create my first RESTful execrcise using. But I am unable to deploy module due to error "com.sun.appserv.connectors.internal.api.ConnectorRuntimeException: Invalid resource : jdbc/playerDB__pm"
I checked and I have JNDI, daata source created.
Unlike specified in link. I am using:
-Netbeans 8.0.3, Java EE 7, GlassFish Server 4.
Also I have checked GlassFish is running fine.
Edit 1:
I have re-checked my 'Services' tab, and I could not find jdbc/__playedDB ,even though I have created it.
Its a bug, the JDBC resource file is not being created (atleast with versions I am using: GlassFish 4.1, Netbeans 8.0.2). Using GlassFish manually create.
There could still be different error untill you set following connectins:
database(data source) <- connection pool <- JNDI.

Build Service issue Liferay

I'am using the liferay-portal-6.2-ce-ga4. I created a configuration for the Liferay Service Builder. But when I restart the Server or deploy the project, then I received the following error like in picture
How, I can solve this problem,
thanks
https://hizliresim.com/48mkzL

Liferay 6.2 cannot fetch compass after portlet deployment

After deploying contacts-portlet in jboss (changes in main.js), css of contacts-portlet is not loaded because of an error regarding compass.
The same portlet exists also on a staging environment with jboss also running as application server. I copied the exact same contacts-portlet.war from staging to production, after deleting the existing on production. After the new deployment, the compass not found error is still displayed on firebug console.
Has anybody met something similar?
The 6.1 compass issue is not the case in Liferay 6.2.
Any help would be appreciated.

Websphere 8.x Fails to publish in Eclipse Juno thanks to null pointer

I am trying to start my WAS 8.x server using eclipse. It used to work just fine, however, all of the sudden it has been failing to publish with a popup box (in Eclipse) that says..
'Publishing to Websphere Application Server v8.5 at localhost...' has encountered a problem.
Could not publish to the server.
Could not publish to the server.
java.lang.NullPointerException
I have removed all applications and I still get this error. It appears to be a "bad error" because the server seems to be running properly. Here is the error log from Eclipse...
java.lang.NullPointerException
at com.ibm.ws.ast.st.core.internal.GenericModuleSupportExtensionHelper.getModuleSupportClasses(GenericModuleSupportExtensionHelper.java:222)
at com.ibm.ws.ast.st.v85.core.internal.WASServerBehaviour.publishGenericModules(WASServerBehaviour.java:2084)
at com.ibm.ws.ast.st.v85.core.internal.WASServerBehaviour.publishModules(WASServerBehaviour.java:1990)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:955)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3108)
at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Anyone know how to fix this?

Liferay on GlassFish: deployment fails

Could anybody give a short-list what to do when deployment to Liferay (with Glassfish) fails? For me it is taking extensively time for getting to know new ways that the process can fail.
If you deploy a portlet to Glassfish and then try to see it in Liferay and you DO NOT see anything, check:
- Is the deploy failed?
- Is there a restart made before you go to see results?
- Does the server give you any errors on log?
- If deployment does not work one way, try another. You can use Liferay menu Plugins Installation-> Upload File or try the method on this post