<< Back to previous view

[QB-1344] Development env setup
Created: 16/Aug/12  Updated: 27/Dec/12

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 4.0.53
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Siim Käba Assigned To: Robin Shen
Resolution: Cannot Reproduce Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: OS X 10.8, Java 6


 Description   
Followed http://wiki.pmease.com/display/QB40/Set+up+Plugin+Development+Workspace guide and got this:

2012-08-16 15:05:56,783 INFO - Cleaning temp directory...
2012-08-16 15:05:56,829 INFO - Benchmarking...
2012-08-16 15:05:57,578 INFO - Booting QuickBuild from '/Users/xxx/qb/quickbuild-4.0.53'...
2012-08-16 15:05:57,586 INFO - Starting framework...

osgi> 2012-08-16 15:05:58,692 INFO - Starting QuickBuild server...
2012-08-16 15:05:58,693 INFO - Starting IOC container...
2012-08-16 15:05:58,829 INFO - Initializing velocity...
********************************************************************
*** WARNING: Wicket is running in DEVELOPMENT mode. ***
*** ^^^^^^^^^^^ ***
*** Do NOT deploy to your live server(s) without changing this. ***
*** See Application#getConfigurationType() for more information. ***
********************************************************************
2012-08-16 15:05:59,118 INFO - Checking data version...
2012-08-16 15:05:59,350 INFO - QuickBuild version table found. Catalog: QUICKBUILD, Schema: PUBLIC, Name: QB_SETTING, Type: TABLE
2012-08-16 15:05:59,369 INFO - Checking data...
2012-08-16 15:06:01,186 INFO - Initializing caches...
2012-08-16 15:06:01,351 INFO - Starting plugin 'com.pmease.quickbuild.plugin.scm.subversion'...
2012-08-16 15:06:01,513 INFO - Starting plugin 'com.pmease.quickbuild.plugin.report.pmd'...
2012-08-16 15:06:01,528 INFO - Constructing report category for plugin: PMD Report (4.0.32)
2012-08-16 15:06:01,954 INFO - Starting plugin 'com.pmease.quickbuild.plugin.report.boosttest'...
2012-08-16 15:06:01,960 INFO - Constructing report category for plugin: Boost Test Integration (4.0.16)
2012-08-16 15:06:02,051 INFO - Starting plugin 'org.eclipse.equinox.http.servlet'...
2012-08-16 15:06:02,057 ERROR - Error starting QuickBuild.
java.lang.RuntimeException: org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.http.servlet_1.1.200.qualifier [12]" could not be resolved. Reason: Missing Constraint: Import-Package: javax.servlet; version="2.3.0"
at com.pmease.quickbuild.pluginsupport.DefaultPluginManager.loadPlugins(DefaultPluginManager.java:118)
at com.pmease.quickbuild.Quickbuild.startServer(Quickbuild.java:316)
at com.pmease.quickbuild.Quickbuild.access$3(Quickbuild.java:226)
at com.pmease.quickbuild.Quickbuild$2.run(Quickbuild.java:161)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.http.servlet_1.1.200.qualifier [12]" could not be resolved. Reason: Missing Constraint: Import-Package: javax.servlet; version="2.3.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1327)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1311)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
at com.pmease.quickbuild.pluginsupport.DefaultPluginManager.loadPlugins(DefaultPluginManager.java:115)
... 4 more
2012-08-16 15:06:02,058 INFO - Stopping QuickBuild server...
2012-08-16 15:06:02,058 INFO - Stopping task scheduler...
2012-08-16 15:06:02,059 INFO - Closing session factory...
2012-08-16 15:06:02,063 INFO - QuickBuild server stopped.


 Comments   
Comment by Robin Shen [ 17/Aug/12 12:36 AM ]
Which Eclipse version are you using?
Comment by Siim Käba [ 17/Aug/12 07:02 AM ]
Juno Release
Comment by Robin Shen [ 18/Aug/12 12:15 PM ]
It works fine at my side. Are you able to start up by running "bin/server.sh console" directly? If not, it is probable that the package is extracted incorrectly.
Comment by Siim Käba [ 21/Aug/12 07:10 AM ]
Yes, it works fine by running manually "bin/server.sh console".
Comment by Robin Shen [ 22/Aug/12 12:44 AM ]
I guess the JDK used in Eclipse to launch QB is different from the JDK used by QB in console mode. The JDK used by QB in console mode is specified in "conf/wrapper.conf" via property "wrapper.java.command", and it defaults to JDK in path environment.
Comment by Siim Käba [ 22/Aug/12 08:06 AM ]
No, its not related to JDK.
It looks like it requires to run from qb/bin working dir, not from default, which is ${workspace_loc:com.pmease.quickbuild.bootstrap}
Didn't dig more to find out exactly Why, but it would be nice to update "Set up Plugin Development Workspace" doc.
Cheers!
Comment by Robin Shen [ 23/Aug/12 02:04 AM ]
QB has to start from "${workspace_loc:com.pmease.quickbuild.bootstrap}" when launched from IDE, otherwise it will not load plugins currently being developed in your IDE. Can you please let me know the directory QuickBuild is extracted to, and the directory of your eclipse workspace?
Comment by Siim Käba [ 23/Aug/12 06:40 AM ]
Extracted to: /Users/siim/dev/zzz/qb/quickbuild-4.0.53/
Workspace: /Users/siim/dev/zzz/qb/ws/
Generated at Thu May 16 09:46:51 UTC 2024 using JIRA 189.