This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Creating a new theme for Liferay does not work. When I choose "New -> Other -> Liferay Plugins -> Import/Create new theme" I'm asked for the theme's name and location. After that the statusbar shows a process "Creating Theme Files and Folders" that never stops. The logfile shows a NullPointerException that is obviously not handled properly.
Created attachment 84698 [details] Logfile with the exception
Have you selected the target server as "Liferay" for the theme project ? Theme can only be created when the target server type is set to "Liferay/Web space" for the web project. Ideally you should not go to the theme creation wizard if target server is not set as "Liferay".
Yes a Liferay Portal (5.2.3 Tomcat Bundle) was selected as the "Run" target
I still think this is related to incorrect target server.. The same exceptions are seen when the target run time is GF..In this case the task bar continuously shows "Creating Theme files and Folders" When create a new theme with LR5.2.3 (tomcat version) as target runtime,even though task bar for a while shows "Creating Theme files and Folders",the theme is eventually created correctly.. Version :Ppack 3.0.2 NB6.5 LR+Tomcat 5.2.3
The target server was created in the following manner: I unpacked the Liferay Tomcat Bundle into a directory, let's call that LR_BASE, so that gives me $LR_BASE/data $LR_BASE/deploy $LR_BASE/tomcat-6.0.18 1) On the services node, right click an choose "Add server" 2) Selected "Liferay Portal Server 5.1.x/5.2.x" in the "Choose Server" dialog 3) Selected "Tomcat 6.x" in the Combobox labeled "Server type" in the "Add Server Instance" dialog 4) For catalina home, I selected the "$LR_BASE/tomcat-6.0.18" 5) Catalina base, http port and debug port were automatically detected by NB 6) In the next dialog I changed the "Portal Deploy Dir" to the $LR_BASE/deploy 7) "Run in Developer Mode" was checked, "Directory Deployment Enabled" was unchecked 8) Switched to my (existing) Webapplication (that was created with a "normal" Tomcat installation) and changed the "Server" in the project properties to the Liferay Portal created in the previous steps. 9) Right click on the project and choose "New -> Other -> Create New Theme"
Thanks for the detailed steps..The problem seems to be with step 6) In the next dialog I changed the "Portal Deploy Dir" to the $LR_BASE/deploy Portal deploy directory should have been $LR_BASE/tomcat-6.0.18/webapps/ROOT Please try this.
>Portal deploy directory should have been $LR_BASE/tomcat-6.0.18/webapps/ROOT But that is not the standard Liferay deploy directory. Anyway, I changed it but I still get the same behaviour
I think Portal deploy directory ($LR_BASE/tomcat-6.0.18/webapps/ROOT) is different from hotdeploy/autodeploy($LR_BASE/deploy) Can you please try the below steps 1)Remove LR target from Services tab 2)Create a new LR target 3)Specify catalina home etc,select next 4)Now it would have filled up the Portal Dir textbox with($LR_BASE/tomcat-6.0.18/webapps/ROOT),don't alter it,autodeploy dir would be empty initially(This will be configured to $LR_BASE/deploy after successful deployment of any portlet/theme etc) 5)Select finish Now please try creating the theme.
i get excactly the same error. i tried it with "netbeans 6.7.1" and also "netbeans IDE Build 200910061401" i choose the "webspace 10" server and (only to test it) one time also the glassfish prelude but the error is always the same... it's also independent of the case if the server runs or not