incubator-hise-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kurtcebe Eroğlu <kurtc...@gmail.com>
Subject IllegalAnnotationsException while testing trunk with jetty:run
Date Sun, 13 Mar 2011 01:43:27 GMT
Greetings,

I'm trying to build and test HISE on my machine.

As per instructions on developer's guide, I've checked out trunk and
built the distro using mvn install successfully. Then I changed to
hise-web and issued mvn jetty:run. Logs indicated server was started.
I've checked localhost:8080/ but received an HTTP 503 with reason code
'service unavaiable'. Upon investigation, I've noticed an
IllegalAnnotationsException [1] at hise-web/target/test.log. This
happens during initialisation, before I send the request from browser.

I wanted to kindly ask if I'm missing something evident. Version
information of my tooling is also attached below [2].

Best regards,
Kurtcebe Eroglu


[1] test.log:
...
...
01:34:06,268 | ERROR | main       | ContextLoader            |
work.web.context.ContextLoader  215 | Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'test': Invocation of init method failed;
nested exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
       at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
       at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
       at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
       at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
       at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
       at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
       at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
       at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
       at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:643)
       at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:189)
       at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:913)
       at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:584)
       at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:341)
       at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:102)
       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
       at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:164)
       at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
       at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:164)
       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
       at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92)
       at org.eclipse.jetty.server.Server.doStart(Server.java:232)
       at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:69)
       at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
       at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:433)
       at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:377)
       at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:546)
       at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
       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:319)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
       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:592)
       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: javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException
       at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:275)
       at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:209)
       at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:404)
       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:592)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
       ... 55 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
       at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:337)
       at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:467)
       at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:550)
       at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:530)
       at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:278)
       at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:178)
       at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
       at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
       at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:167)
       at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:346)
       at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:259)
       ... 64 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 82
counts of IllegalAnnotationExceptions
org.apache.hise.lang.xsd.htd.TOrganizationalEntity is an interface,
and JAXB can't handle interfaces.
       this problem is related to the following location:
               at org.apache.hise.lang.xsd.htd.TOrganizationalEntity
               at private org.apache.hise.lang.xsd.htd.TOrganizationalEntity
org.apache.hise.test.jaxws_asm.DelegateViaApi.arg1
               at org.apache.hise.test.jaxws_asm.DelegateViaApi
org.apache.hise.lang.xsd.htd.TOrganizationalEntity does not have a
no-arg default constructor.
       this problem is related to the following location:
               at org.apache.hise.lang.xsd.htd.TOrganizationalEntity
               at private org.apache.hise.lang.xsd.htd.TOrganizationalEntity
org.apache.hise.test.jaxws_asm.DelegateViaApi.arg1
               at org.apache.hise.test.jaxws_asm.DelegateViaApi
...
... (goes on to list same errors on other annotations)


[2] my tooling versions:
F:\hise_repo\hise-web>mvn -v
Apache Maven 3.0.2 (r1056850; 2011-01-09 02:58:10+0200)
Java version: 1.5.0_22, vendor: Sun Microsystems Inc.
Java home: C:\Program Files (x86)\Java\jdk1.5.0_22\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

Mime
View raw message