newbie ide problems

69 views
Skip to first unread message

Andres Meyer

unread,
Jul 28, 2015, 12:07:59 PM7/28/15
to openhab2
Hi, I just installed the OpenHAB2 via the eclipse installer (very nice setup, btw), waited for everything to compile, clicked on "debug" and now get lots of "unresolved requirement: javax.servlet" errors. Is there some additional package that I have to install to get the javax.servlet api?

Cheers,
Andres

One example:

!SESSION 2015-07-28 17:31:22.202 -----------------------------------------------

eclipse.buildId=unknown

java.version=1.7.0_45

java.vendor=Oracle Corporation

BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US

Framework arguments:  -application 

Command-line arguments:  -application  -data /Users/ameyer/Projects/openhab2-master/ws/../runtime-org.openhab.runtime.product.product -dev file:/Users/ameyer/Projects/openhab2-master/ws/.metadata/.plugins/org.eclipse.pde.core/openHAB_Runtime/dev.properties -os macosx -ws cocoa -arch x86_64 -consoleLog -console


!ENTRY org.eclipse.jetty.osgi.boot 4 0 2015-07-28 17:31:23.587

!MESSAGE FrameworkEvent ERROR

!STACK 0

org.osgi.framework.BundleException: Could not resolve module: org.eclipse.jetty.osgi.boot [51]

  Unresolved requirement: Import-Package: javax.mail; version="1.4.0"; resolution:="optional"

  Unresolved requirement: Import-Package: javax.mail.event; version="1.4.0"; resolution:="optional"

  Unresolved requirement: Import-Package: javax.mail.internet; version="1.4.0"; resolution:="optional"

  Unresolved requirement: Import-Package: javax.mail.search; version="1.4.0"; resolution:="optional"

  Unresolved requirement: Import-Package: javax.mail.util; version="1.4.0"; resolution:="optional"

  Unresolved requirement: Import-Package: javax.servlet; version="[3.1.0,3.2.0)"


at org.eclipse.osgi.container.Module.start(Module.java:434)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)

at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)

at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

2015-07-28 17:31:24 [DEBUG] [s.m.i.r.i.ItemRuntimeActivator:23   ] - Registered 'item' configuration parser

Kai Kreuzer

unread,
Jul 28, 2015, 12:12:51 PM7/28/15
to open...@googlegroups.com
This sounds as if the target platform is not correctly set (what should normally happen automatically, but I have done changes to it yesterday, so maybe there is a problem).

Could you check if the „openHAB 2 Target Platfom“ is selected in the Settings -> Plug-in Development -> Targetplatform menu?

Regards,
Kai

--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/111773a4-c73a-4e51-aad2-e2d4bdeb8853%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andres Meyer

unread,
Jul 28, 2015, 12:28:25 PM7/28/15
to openhab2, andres...@gmail.com
Thanks for you fast response. Yes, its selected as you mention. This does not seem to be the problem.

Cheers,
Andres

Kai Kreuzer

unread,
Jul 28, 2015, 12:33:55 PM7/28/15
to open...@googlegroups.com, andres...@gmail.com
Ah, you say you „clicked on debug“ - this sounds as if you haven’t selected the prepared „openHAB Runtime“ launch configuration? So better select „Debug Configurations…“ instead.

Regards,
Kai

--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.

Andres Meyer

unread,
Jul 28, 2015, 12:39:31 PM7/28/15
to openhab2, k...@openhab.org
I forgot to mention that I actually did that the second time already, just to be sure. But its still the same. Maybe I can help by somehow looking at where / what jar should be included?

Cheers,
Andres

Andres Meyer

unread,
Jul 28, 2015, 12:58:35 PM7/28/15
to openhab2, k...@openhab.org, andres...@gmail.com
looking at git, I can see that clicking debug actually changes the launch configuration and removes the "javax.servlet*3.1.0.v201410161800@default:default" from your configuration in openHAB_Runtime.launch. If I revert it, clean the build, debug->runtime configurations->build, it will again show a validation error popup and then remove it from the file.

Kai Kreuzer

unread,
Jul 28, 2015, 1:14:23 PM7/28/15
to Andres Meyer, openhab2
Thanks Andres,

You are right, indeed the launch config was missing javax.servlet - this most be due to the slightly changed target platform setup which I did yesterday.

I have just committed a version that now works flawlessly for me: https://github.com/openhab/openhab2/commit/bff99c7b2dd7a3c538a5de7286f5f09e0839fe98

Could you please check, if this resolves your problems?

Cheers,
Kai

Andres Meyer

unread,
Jul 28, 2015, 1:19:17 PM7/28/15
to openhab2, k...@openhab.org
Yep, works.

Cheers!
Andres
Reply all
Reply to author
Forward
0 new messages