Glassfish部署失败IllegalStateException

时间:2014-10-21 20:21:42

标签: java java-ee glassfish derby

尝试部署到Glassfish,但仍然收到此异常:

Error occurred during deployment: Exception while loading the app :  
java.lang.IllegalStateException: ContainerBase.addChild: start:  
org.apache.catalina.LifecycleException: java.lang.ExceptionInInitializerError.  
Please see server.log for more details.

我们正在使用Derby数据库。

这里是日志中的堆栈:

  

调用类com.sun.enterprise.web.WebApplication时发生异常   start方法java.lang.Exception:java.lang.IllegalStateException:   ContainerBase.addChild:start:org.apache.catalina.LifecycleException:   java.lang.ExceptionInInitializerError at   com.sun.enterprise.web.WebApplication.start(WebApplication.java:138)   在org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)at   org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)at   org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)   在   com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)   在   com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)   在   org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)   在   com.sun.enterprise.v3.admin.CommandRunnerImpl $ 1.execute(CommandRunnerImpl.java:348)   在   com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)   在   com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)   在   com.sun.enterprise.v3.admin.CommandRunnerImpl.access $ 1200(CommandRunnerImpl.java:95)   在   com.sun.enterprise.v3.admin.CommandRunnerImpl $ ExecutionContext.execute(CommandRunnerImpl.java:1291)   在   com.sun.enterprise.v3.admin.CommandRunnerImpl $ ExecutionContext.execute(CommandRunnerImpl.java:1259)   在   org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:214)   在   org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:207)   在   org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)   在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)   在java.lang.reflect.Method.invoke(Method.java:601)at   com.sun.jersey.spi.container.JavaMethodInvokerFactory $ 1.invoke(JavaMethodInvokerFactory.java:60)   在   com.sun.jersey.server.impl.model.method.dispatch.Abs​​tractResourceMethodDispatchProvider $ ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)   在   com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)   在   com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)   在   com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)   在   com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)   在   com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)   在   com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)   在   com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)   在   com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)   在   com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)   在   com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)   在   com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)   在   com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)   在   com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)   在   com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182)   在   com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147)   在   org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:148)   在   com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)   在   com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)   在   com.sun.enterprise.v3.services.impl.ContainerMapper $ Hk2DispatcherCallable.call(ContainerMapper.java:354)   在   com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)   在   com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)   在   com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)   在com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)   在   com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)   在   com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)   在   com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)   在   com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)   在   com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)   在   com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)   在   com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)   在com.sun.grizzly.ContextTask.run(ContextTask.java:71)at   com.sun.grizzly.util.AbstractThreadPool $ Worker.doWork(AbstractThreadPool.java:532)   在   com.sun.grizzly.util.AbstractThreadPool $ Worker.run(AbstractThreadPool.java:513)   在java.lang.Thread.run(Thread.java:722)

可能导致这种情况的原因是什么?

0 个答案:

没有答案