Hi
All,
I
am trying to do the same as Marc in thread:
http://dev.eclipse.org/mhonarc/lists/lyo-dev/msg00241.html
i.e.
trying to follow the instruction in the appendix of the tutorial
(http://open-services.net/resources/tutorials/integrating-products-with-oslc/appendix-running-the-examples/).
When
I run the OSLC4JBugzilla from the Maven Build, I get some Java errors on the
console (see below) but these are different from those encountered by Marc
I
have tried the suggestions from that thread with no success.
I
am a newbie to all this and am not familiar with eclipse so a apologise in
advance. If anyone has any suggestions I would be most grateful
Thanks,
Judith
SLF4J: Failed to load class
"org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder
for further details.
[INFO]
Scanning for projects...
[WARNING]
[WARNING]
Some problems were encountered while building the effective model for
org.eclipse.lyo.oslc4j.rio:oslc4j-bugzilla-sample:war:0.0.1-SNAPSHOT
[WARNING]
'build.plugins.plugin.version' for org.mortbay.jetty:jetty-maven-plugin is
missing. @ line 102, column 11
[WARNING]
[WARNING]
It is highly recommended to fix these problems because they threaten the
stability of your build.
[WARNING]
[WARNING]
For this reason, future Maven versions might no longer support building such
malformed projects.
[WARNING]
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO]
Building oslc4j-bugzilla-sample 0.0.1-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO]
>>> jetty-maven-plugin:8.1.9.v20130131:run (default-cli) @
oslc4j-bugzilla-sample >>>
[WARNING]
The artifact jstl:jstl:jar:1.1.2 has been relocated to
javax.servlet:jstl:jar:1.1.2
[INFO]
[INFO]
--- maven-resources-plugin:2.5:resources (default-resources) @
oslc4j-bugzilla-sample ---
[debug]
execute contextualize
[WARNING]
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build
is platform dependent!
[INFO]
Copying 2 resources
[INFO]
[INFO]
--- maven-compiler-plugin:2.3.2:compile (default-compile) @
oslc4j-bugzilla-sample ---
[INFO]
Nothing to compile - all classes are up to date
[INFO]
[INFO]
--- maven-resources-plugin:2.5:testResources (default-testResources) @
oslc4j-bugzilla-sample ---
[debug]
execute contextualize
[WARNING]
Using platform encoding (Cp1252 actually) to copy filtered resources, i.e.
build is platform dependent!
[INFO]
Copying 1 resource
[INFO]
[INFO]
--- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
oslc4j-bugzilla-sample ---
[INFO]
Nothing to compile - all classes are up to date
[INFO]
[INFO]
<<< jetty-maven-plugin:8.1.9.v20130131:run (default-cli) @ oslc4j-bugzilla-sample
<<<
[WARNING]
The artifact jstl:jstl:jar:1.1.2 has been relocated to
javax.servlet:jstl:jar:1.1.2
[INFO]
[INFO]
--- jetty-maven-plugin:8.1.9.v20130131:run (default-cli) @
oslc4j-bugzilla-sample ---
[INFO]
Configuring Jetty for project: oslc4j-bugzilla-sample
[INFO]
webAppSourceDirectory not set. Defaulting to
C:\Users\judith\git\org.eclipse.lyo.docs\OSLC4JBugzilla\src\main\webapp
[INFO]
Reload Mechanic: automatic
[INFO]
Classes = C:\Users\judith\git\org.eclipse.lyo.docs\OSLC4JBugzilla\target\classes
[INFO]
Added extra scan
target:C:\Users\judith\git\org.eclipse.lyo.docs\OSLC4JBugzilla\WebContent
[INFO]
Configuring Jetty from xml configuration file =
C:\Users\judith\git\org.eclipse.lyo.docs\OSLC4JBugzilla\target\classes\jetty.xml
[INFO]
Context path = /OSLC4JBugzilla
[INFO]
Tmp directory =
C:\Users\judith\git\org.eclipse.lyo.docs\OSLC4JBugzilla\target\tmp
[INFO]
Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO]
Web overrides = none
[INFO]
Adding overlay for war project artifact org.eclipse.lyo.server:oauth-webapp:war:1.1
[INFO]
web.xml file =
file:/C:/Users/judith/git/org.eclipse.lyo.docs/OSLC4JBugzilla/src/main/webapp/WEB-INF/web.xml
[INFO]
Webapp directory =
C:\Users\judith\git\org.eclipse.lyo.docs\OSLC4JBugzilla\src\main\webapp
2013-02-15 12:11:55.926:INFO:oejs.Server:jetty-8.1.9.v20130131
2013-02-15 12:11:55.941:INFO:omjp.MavenWebInfConfiguration:Unpacking
overlay:
jar:file:/C:/Users/judith/.m2/repository/org/eclipse/lyo/server/oauth-webapp/1.1/oauth-webapp-1.1.war!/
2013-02-15 12:11:56.208:INFO:omjp.MavenWebInfConfiguration:Adding
overlay:
file:/C:/Users/judith/git/org.eclipse.lyo.docs/OSLC4JBugzilla/target/tmp/oauth-webapp-1_1_war/
2013-02-15 12:11:57.409:INFO:oejpw.PlusConfiguration:No Transaction
manager found - if your webapp requires one, please configure one.
2013-02-15 12:12:02.027:WARN:oejw.WebAppContext:Failed startup of
context
o.m.j.p.JettyWebAppContext{/OSLC4JBugzilla,[file:/C:/Users/judith/git/org.eclipse.lyo.docs/OSLC4JBugzilla/src/main/webapp/,
file:/C:/Users/judith/git/org.eclipse.lyo.docs/OSLC4JBugzilla/target/tmp/oauth-webapp-1_1_war/]},file:/C:/Users/judith/git/org.eclipse.lyo.docs/OSLC4JBugzilla/src/main/webapp/
java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85)
at
org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72)
at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:367)
at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1248)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:710)
at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
at
org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:293)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at
org.eclipse.jetty.server.Server.doStart(Server.java:280)
at
org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:520)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:365)
at
org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at
org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at
org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by:
java.lang.Error: Unresolved compilation problems: |?The import
javax.servlet cannot be resolved|?The import javax.servlet cannot be
resolved|?The import javax.servlet cannot be resolved|?The import javax.servlet
cannot be resolved|?The import javax.servlet cannot be resolved|?The import javax.ws cannot be resolved|?The
import javax.ws cannot be
resolved|?The import org.eclipse.lyo.core cannot be resolved|?The import
org.eclipse.lyo.core cannot be resolved|?The import org.eclipse.lyo.core cannot
be resolved|?The import org.eclipse.lyo.core cannot be resolved|?The import
org.eclipse.lyo.core cannot be resolved|?The import org.eclipse.lyo.core cannot
be resolved|?The import org.eclipse.lyo.core cannot be resolved|?The import
org.eclipse.lyo.core cannot be resolved|?The import org.eclipse.lyo.core cannot
be resolved|?The import org.eclipse.lyo.core cannot be resolved|?The import
org.eclipse.lyo.core cannot be resolved|?The import org.eclipse.lyo.core cannot
be resolved|?The import org.eclipse.lyo.core cannot be resolved|?The import
org.eclipse.lyo.core cannot be resolved|?The import org.eclipse.lyo.oslc4j.client
cannot be resolved|?The import org.eclipse.lyo.oslc4j.core cannot be
resolved|?The import org.eclipse.lyo.oslc4j.core cannot be resolved|?The import
org.eclipse.lyo.oslc4j.core cannot be resolved|?The import org.eclipse.lyo.oslc4j.core
cannot be resolved|?The import com.j2bugzilla cannot be resolved|?The import
com.j2bugzilla cannot be resolved|?The import com.j2bugzilla cannot be
resolved|?The import com.j2bugzilla cannot be resolved|?The import
com.j2bugzilla cannot be resolved|?The import com.j2bugzilla cannot be
resolved|?The import com.j2bugzilla cannot be resolved|?The import
com.j2bugzilla cannot be resolved|?ServletContextListener cannot be resolved to
a type|?ServiceProviderRegistryURIs cannot be resolved to a type|?OslcConstants
cannot be resolved to a variable|?ServletContextEvent cannot be resolved to a
type|?ServletContextEvent cannot be resolved to a type|?BugzillaConnector
cannot be resolved to a type|?HttpServletRequest cannot be resolved to a
type|?BugzillaConnector cannot be resolved to a type|?BugzillaConnector cannot
be resolved to a type|?ServletContextEvent cannot be resolved to a
type|?ServletContext cannot be resolved to a type|?HttpServletRequest cannot be
resolved to a type|?ServletException cannot be resolved to a
type|?BugzillaConnector cannot be resolved to a type|?ServiceProvider cannot be
resolved to a type|?QueryUtils cannot be resolved|?OrderByClause cannot be
resolved to a type|?QueryUtils cannot be resolved|?SingletonWildcardProperties
cannot be resolved to a type|?OslcConstants cannot be resolved to a
variable|?OslcConstants cannot be resolved to a variable|?WebApplicationException cannot be resolved to
a type|?The method setAbout(URI) is undefined for the type
BugzillaChangeRequest|?Incompatible conditional operand types Exception and WebApplicationException|?WebApplicationException cannot be resolved to
a type|?WebApplicationException cannot be resolved to
a type|?WebApplicationException cannot be resolved to
a type|?The method setAbout(URI) is undefined for the type Person|?The method
setExtendedProperties(Map<QName,Object>) is undefined for the type
BugzillaChangeRequest|?ServiceProvider cannot be resolved to a type|?ParseException cannot be resolved to
a type|?WhereClause cannot be resolved to a type|?QueryUtils cannot be
resolved|?CompoundTerm cannot be resolved to a type|?SimpleTerm cannot be
resolved to a type|?COMPARISON cannot be resolved to a variable|?NESTED cannot
be resolved to a variable|?PName cannot be resolved to a type|?WebApplicationException cannot be resolved to
a type|?Status cannot be resolved to a variable|?The method
createSearchQueries(StringBuffer, int, CompoundTerm, Map<String,Object>)
from the type BugzillaManager refers to the missing type
CompoundTerm|?CompoundTerm cannot be resolved to a type|?The method
createInQuery(StringBuffer, int, InTerm, Map<String,Object>) from the
type BugzillaManager refers to the missing type InTerm|?InTerm cannot be
resolved to a type|?ComparisonTerm cannot be resolved to a type|?ComparisonTerm
cannot be resolved to a type|?EQUALS cannot be resolved to a
variable|?NOT_EQUALS cannot be resolved to a variable|?LESS_THAN cannot be
resolved to a variable|?LESS_EQUALS cannot be resolved to a
variable|?GREATER_THAN cannot be resolved to a variable|?GREATER_EQUALS cannot
be resolved to a variable|?PName cannot be resolved to a type|?SortTerms cannot
be resolved to a type|?InTerm cannot be resolved to a type|?ServletException cannot be resolved to
a type|?ServletException cannot be resolved to
a type|?HttpServletRequest cannot be resolved to a type|?ServletException cannot be resolved to
a type|?Link cannot be resolved to a type|?The method getAffectedByDefects()
from the type ChangeRequest refers to the missing type Link|?OslcConstants
cannot be resolved to a variable|?OslcConstants cannot be resolved to a
variable|?OslcConstants cannot be resolved to a variable|?OslcConstants cannot
be resolved to a variable|?OslcConstants cannot be resolved to a variable|
at
org.eclipse.lyo.oslc4j.bugzilla.BugzillaManager.<init>(BugzillaManager.java:37)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
java.lang.Class.newInstance0(Class.java:357)
at java.lang.Class.newInstance(Class.java:310)
at
org.eclipse.jetty.server.handler.ContextHandler$Context.createListener(ContextHandler.java:2355)
at
org.eclipse.jetty.servlet.ServletContextHandler$Context.createListener(ServletContextHandler.java:1229)
at
org.eclipse.jetty.webapp.StandardDescriptorProcessor.newListenerInstance(StandardDescriptorProcessor.java:1908)
at
org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(StandardDescriptorProcessor.java:1865)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85)
at
org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72)
at
org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:367)
at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1248)
at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:710)
at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492)
at
org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:293)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at
org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at
org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at
org.eclipse.jetty.server.Server.doStart(Server.java:280)
at
org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:520)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:365)
at
org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:523)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at
org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at
org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at
org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
2013-02-15 12:12:02.091:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080
[INFO]
Started Jetty Server
[INFO] Starting scanner at
interval of 5 seconds.