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.

Bug 168537 - Theme cannot be created
Summary: Theme cannot be created
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Portalpack (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Satyaranjan D
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-14 11:38 UTC by tkellerer
Modified: 2009-10-15 11:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Logfile with the exception (61.41 KB, text/plain)
2009-07-14 11:39 UTC, tkellerer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tkellerer 2009-07-14 11:38:38 UTC
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.
Comment 1 tkellerer 2009-07-14 11:39:01 UTC
Created attachment 84698 [details]
Logfile with the exception
Comment 2 Satyaranjan D 2009-07-15 07:32:46 UTC
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". 

Comment 3 tkellerer 2009-07-15 08:29:57 UTC
Yes a Liferay Portal (5.2.3 Tomcat Bundle) was selected as the "Run" target
Comment 4 kk_sriram 2009-07-15 12:55:11 UTC
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
Comment 5 tkellerer 2009-07-15 13:07:03 UTC
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"


Comment 6 kk_sriram 2009-07-15 13:28:17 UTC
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.
Comment 7 tkellerer 2009-07-15 13:33:19 UTC
>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
Comment 8 kk_sriram 2009-07-15 14:00:06 UTC
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.
Comment 9 zwiebljack 2009-10-15 11:44:04 UTC
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