tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hannes Steffenhagen <cubicentert...@gmail.com>
Subject Re: Can't deploy my app (fails to create annotation scanner)
Date Mon, 07 Apr 2014 22:27:18 GMT
I didn't know that. That seems to have been the problem. Thanks!


On Mon, Apr 7, 2014 at 10:54 PM, Romain Manni-Bucau
<rmannibucau@gmail.com>wrote:

> Hi
>
> did you compile using java 8? the java 8 support is in progress.
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2014-04-07 22:49 GMT+02:00 Hannes Steffenhagen <cubicentertain@gmail.com>:
> > Hi! I'm pretty new at all this, so please bear with me here. I'm trying
> to
> > deploy a gwt application (it's just the StockWatcher example from
> > here<http://www.gwtproject.org/doc/latest/tutorial/gettingstarted.html>.
> > My web.xml doesn't contain anything of interest (I'm just trying to get
> it
> > to serve static files for now... I understand the DefaultServlet already
> > does this). I do get an exception when trying to deploy it though, which
> > greatly irritates me considering I'm doing absolutely nothing interesting
> > yet. The annotation scanner thing is the only thing in there that I could
> > read, although it doesn't mean anything to me. That is, I know what an
> > annotation scanner is, but why it would fail to load for my app I don't
> > understand. I'd love to get more specific than this, but I don't have the
> > faintest clue what's going on here. I imagine this might not be enough to
> > tell where things go wrong, please tell me if you want to know specifics
> > (this is just a test program so there's nothing to hide here; The only
> > reason I didn't post the full source is because this is overly long
> > already).
> >
> > web.xml:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <web-app xmlns="http://java.sun.com/xml/ns/javaee"
> >          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> >   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> >          version="2.5">
> >
> > </web-app>
> >
> > war structure (created with jar Wcf):
> >
> > .
> > |-- StockWatcher
> > |   |-- 0FCA562BBF33A0B02CE546678DF02E89.cache.html
> > |   |-- 1154ECE885BDBF79EBCEFC94C0610BAD.cache.html
> > |   |-- 3294A9FEAC89A59A892DD57EAC862618.cache.html
> > |   |-- 41C8648D30FDF02AAFC87C54C9D7455B.cache.html
> > |   |-- 8068141FDD9061490277FA7D3DFD0110.cache.html
> > |   |-- 8CE5A8C32FEDBA954044D930B9E6AC73.cache.html
> > |   |-- 93EA3321CF6D3CE3F5D126C41417862A.cache.html
> > |   |-- clear.cache.gif
> > |   |-- gwt
> > |   |   `-- dark
> > |   |       |-- dark.css
> > |   |       |-- dark_rtl.css
> > |   |       `-- images
> > |   |           |-- corner_ie6.png
> > |   |           |-- corner.png
> > |   |           |-- hborder_ie6.png
> > |   |           |-- hborder.png
> > |   |           |-- ie6
> > |   |           |   |-- corner_dialog_topleft.png
> > |   |           |   |-- corner_dialog_topright.png
> > |   |           |   |-- hborder_blue_shadow.png
> > |   |           |   |-- hborder_gray_shadow.png
> > |   |           |   |-- vborder_blue_shadow.png
> > |   |           |   `-- vborder_gray_shadow.png
> > |   |           |-- splitPanelThumb.png
> > |   |           |-- vborder_ie6.png
> > |   |           `-- vborder.png
> > |   |-- hosted.html
> > |   `-- StockWatcher.nocache.js
> > |-- StockWatcher.html
> > `-- WEB-INF
> >     |-- classes
> >     |   `-- com
> >     |       `-- google
> >     |           `-- example
> >     |               `-- stockwatcher
> >     |                   |-- client
> >     |                   |   |-- StockPrice.class
> >     |                   |   |-- StockWatcher$1.class
> >     |                   |   |-- StockWatcher$2.class
> >     |                   |   |-- StockWatcher$3.class
> >     |                   |   |-- StockWatcher$4.class
> >     |                   |   |-- StockWatcher.class
> >     |                   |   `-- StockWatcherService.class
> >     |                   |-- server
> >     |                   |   `-- StockWatcherServiceImpl.class
> >     |                   `-- StockWatcher.gwt.xml
> >     |-- lib
> >     |   `-- gwt-servlet.jar
> >     `-- web.xml
> >
> > relevant stacktrace from catalina.out (kinda long, sorry):
> >
> > Apr 07, 2014 10:42:17 PM org.apache.catalina.startup.HostConfig deployWAR
> > INFO: Deploying web application archive
> > /home/hannes/apps/apache-tomee-plus-1.6.0/webapps/web.war
> > Apr 07, 2014 10:42:17 PM org.apache.tomee.catalina.TomcatWebAppBuilder
> init
> > INFO: ------------------------- localhost -> /web
> > Apr 07, 2014 10:42:17 PM org.apache.openejb.util.JarExtractor extract
> > INFO: Extracting jar:
> > /home/hannes/apps/apache-tomee-plus-1.6.0/webapps/web.war
> > Apr 07, 2014 10:42:17 PM org.apache.openejb.util.JarExtractor extract
> > INFO: Extracted path:
> /home/hannes/apps/apache-tomee-plus-1.6.0/webapps/web
> > Apr 07, 2014 10:42:17 PM org.apache.catalina.core.ContainerBase
> > addChildInternal
> > SEVERE: ContainerBase.addChild: start:
> > org.apache.catalina.LifecycleException: Failed to start component
> > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/web]]
> > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
> > at
> >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> > at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
> > at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:983)
> > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:548)
> > at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1468)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:606)
> > at
> >
> org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
> > at
> >
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
> > at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
> > at
> >
> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1447)
> > at
> >
> org.apache.catalina.manager.HTMLManagerServlet.upload(HTMLManagerServlet.java:303)
> > at
> >
> org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:210)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> > at
> >
> org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:213)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> > at
> >
> org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> > at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> > at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> > at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> > at
> >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:611)
> > at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> > at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
> > at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
> > at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> > at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> > at
> >
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
> > at
> >
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
> > at
> >
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> > at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> > at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> > at java.lang.Thread.run(Thread.java:724)
> > Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> > org.apache.openejb.OpenEJBException: Unable to create annotation scanner
> > for web module web: null
> > at
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2049)
> > at
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1091)
> > at
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1051)
> > at
> >
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
> > at
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> > at
> >
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> > at
> >
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
> > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> > ... 44 more
> > Caused by: org.apache.openejb.OpenEJBException: Unable to create
> annotation
> > scanner for web module web: null
> > at
> >
> org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:838)
> > at
> >
> org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:219)
> > at
> >
> org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2047)
> > ... 51 more
> > Caused by: java.lang.IllegalArgumentException
> > at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source)
> > at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source)
> > at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source)
> > at
> >
> org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1120)
> > at
> >
> org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:139)
> > at
> >
> org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:152)
> > at
> >
> org.apache.xbean.finder.AsynchronousInheritanceAnnotationFinder.<init>(AsynchronousInheritanceAnnotationFinder.java:43)
> > at
> org.apache.openejb.config.FinderFactory.newFinder(FinderFactory.java:114)
> > at org.apache.openejb.config.FinderFactory.create(FinderFactory.java:68)
> > at
> >
> org.apache.openejb.config.FinderFactory.createFinder(FinderFactory.java:57)
> > at
> >
> org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:830)
> > ... 53 more
> >
> > Apr 07, 2014 10:42:17 PM org.apache.catalina.startup.HostConfig deployWAR
> > SEVERE: Error deploying web application archive
> > /home/hannes/apps/apache-tomee-plus-1.6.0/webapps/web.war
> > java.lang.IllegalStateException: ContainerBase.addChild: start:
> > org.apache.catalina.LifecycleException: Failed to start component
> > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/web]]
> > at
> >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
> > at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
> > at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:983)
> > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:548)
> > at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1468)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:606)
> > at
> >
> org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)
> > at
> >
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
> > at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
> > at
> >
> org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1447)
> > at
> >
> org.apache.catalina.manager.HTMLManagerServlet.upload(HTMLManagerServlet.java:303)
> > at
> >
> org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:210)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> > at
> >
> org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:213)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> > at
> >
> org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> > at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> > at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> > at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> > at
> >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:611)
> > at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> > at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
> > at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
> > at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> > at
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> > at
> >
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
> > at
> >
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
> > at
> >
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> > at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> > at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> > at java.lang.Thread.run(Thread.java:724)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message