Granite Data Services Spring application does not start on JBoss EAP
Issue
- The following error in the JBoss server log:
ERROR [org.granite.config.GraniteConfig] (ServerService Thread Pool -- 67) Could not scan classpath for configuration: java.io.FileNotFoundException: /JBOSS_HOME/bin/content/my.ear/lib/granite-seam21.jar (The system cannot find the path specified)
at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.8.0_45]
at java.util.zip.ZipFile.<init>(ZipFile.java:220) [rt.jar:1.8.0_45]
at java.util.zip.ZipFile.<init>(ZipFile.java:150) [rt.jar:1.8.0_45]
at java.util.zip.ZipFile.<init>(ZipFile.java:164) [rt.jar:1.8.0_45]
at org.granite.scan.URLScanner.handleArchive(URLScanner.java:145) [granite.jar:]
at org.granite.scan.URLScanner.scan(URLScanner.java:139) [granite.jar:]
at org.granite.config.GraniteConfig.scanConfig(GraniteConfig.java:219) [granite.jar:]
at org.granite.config.GraniteConfig.forElement(GraniteConfig.java:522) [granite.jar:]
at org.granite.config.GraniteConfig.<init>(GraniteConfig.java:197) [granite.jar:]
at org.granite.config.AbstractFrameworkGraniteConfig.init(AbstractFrameworkGraniteConfig.java:70) [granite.jar:]
at org.granite.seam21.Seam21GraniteConfig.init(Seam21GraniteConfig.java:42) [granite-seam21.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_45]
at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_45]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam.jar:2.1.2]
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam.jar:2.1.2]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam.jar:2.1.2]
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam.jar:2.1.2]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.1.2]
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam.jar:2.1.2]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam.jar:2.1.2]
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam.jar:2.1.2]
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam.jar:2.1.2]
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam.jar:2.1.2]
at org.granite.seam21.Seam21GraniteConfig_$$_javassist_seam_0.init(Seam21GraniteConfig_$$_javassist_seam_0.java) [granite-seam21.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_45]
at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_45]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam.jar:2.1.2]
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam.jar:2.1.2]
at org.jboss.seam.Component.callComponentMethod(Component.java:2249) [jboss-seam.jar:2.1.2]
at org.jboss.seam.Component.callCreateMethod(Component.java:2172) [jboss-seam.jar:2.1.2]
at org.jboss.seam.Component.newInstance(Component.java:2132) [jboss-seam.jar:2.1.2]
at org.jboss.seam.Component.getInstance(Component.java:2021) [jboss-seam.jar:2.1.2]
at org.jboss.seam.Component.getInstance(Component.java:1983) [jboss-seam.jar:2.1.2]
at org.jboss.seam.Component.getInstance(Component.java:1977) [jboss-seam.jar:2.1.2]
at org.jboss.seam.Component.getInstance(Component.java:1957) [jboss-seam.jar:2.1.2]
at org.granite.seam21.FlexFilter.seamInit(FlexFilter.java:75) [granite-seam21.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_45]
at java.lang.reflect.Method.invoke(Method.java:497) [rt.jar:1.8.0_45]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam.jar:2.1.2]
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) [jboss-seam.jar:2.1.2]
at org.jboss.seam.Component.callComponentMethod(Component.java:2249) [jboss-seam.jar:2.1.2]
at org.jboss.seam.Component.callCreateMethod(Component.java:2172) [jboss-seam.jar:2.1.2]
at org.jboss.seam.Component.newInstance(Component.java:2132) [jboss-seam.jar:2.1.2]
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304) [jboss-seam.jar:2.1.2]
at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278) [jboss-seam.jar:2.1.2]
at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:113) [jboss-seam.jar:2.1.2]
at org.jboss.seam.init.Initialization.init(Initialization.java:740) [jboss-seam.jar:2.1.2]
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam.jar:2.1.2]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3339) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3780) [jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1]
at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:163) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:61) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:96) [jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_45]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_45]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_45]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
- Server start up issues when Flex application is migrated from Jboss 5.1 to 6.4
- Issue is coming only when compressed form of ear is deployed and not when exploded form of ear is deployed.
- Application works fine with exploded form of ear.
Environment
- Red Hat JBoss Enterprise Application Platform 6.4.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.