Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache Geronimo中的Web应用程序部署失败_Apache_Tomcat_Web Deployment_Geronimo - Fatal编程技术网

Apache Geronimo中的Web应用程序部署失败

Apache Geronimo中的Web应用程序部署失败,apache,tomcat,web-deployment,geronimo,Apache,Tomcat,Web Deployment,Geronimo,我有一个带有WASCE的Linux虚拟机,希望使用Geronimo部署一个web应用程序。 当我尝试将我的应用程序部署到Geronimo 3.0.0.3 J2EE Web概要文件服务器时,部署失败,原因如下: The application was not successfully started. start of <myApp>/1.0.0-SNAPSHOT/war failed org.apache.geronimo.kernel.config.LifecycleExcepti

我有一个带有WASCE的Linux虚拟机,希望使用Geronimo部署一个web应用程序。 当我尝试将我的应用程序部署到Geronimo 3.0.0.3 J2EE Web概要文件服务器时,部署失败,原因如下:

The application was not successfully started.
start of <myApp>/1.0.0-SNAPSHOT/war failed
org.apache.geronimo.kernel.config.LifecycleException: start of <myApp>/1.0.0-SNAPSHOT/war failed
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:726)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:689)
at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.geronimo.kernel.config.InvalidConfigException: Unknown start exception
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:527)
at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:225)
at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:710)
... 3 more
Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Could not load GBeanInfo class from classloader: org.eclipse.osgi.framework.internal.core.BundleContextImpl@690bf1cf className=org.apache.geronimo.openwebbeans.OpenWebBeansWebAppContext
at org.apache.geronimo.gbean.runtime.GBeanInstance.(GBeanInstance.java:250)
at org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:361)
at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:452)
... 5 more
Caused by: java.lang.ClassNotFoundException: org.apache.geronimo.openwebbeans.OpenWebBeansWebAppContext
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
at org.apache.geronimo.gbean.runtime.GBeanInstance.(GBeanInstance.java:248)
... 7 more
应用程序未成功启动。
启动/1.0.0-SNAPSHOT/war失败
org.apache.geronimo.kernel.config.LifecycleException:启动/1.0.0-SNAPSHOT/war失败
位于org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:726)
位于org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:689)
位于org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
运行(Thread.java:745)
原因:org.apache.geronimo.kernel.config.InvalidConfigException:未知启动异常
位于org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:527)
位于org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:225)
位于org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:710)
... 3个以上
原因:org.apache.geronimo.gbean.InvalidConfigurationException:无法从类加载器org.eclipse.osgi.framework.internal.core加载GBeanInfo类。BundleContextImpl@690bf1cfclassName=org.apache.geronimo.openwebbeans.OpenWebBeansWebAppContext
位于org.apache.geronimo.gbean.runtime.GBeanInstance。(GBeanInstance.java:250)
位于org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:361)
位于org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:452)
... 还有5个
原因:java.lang.ClassNotFoundException:org.apache.geronimo.openwebbeans.openwebbeansweabapContext
位于org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
位于org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
位于org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
位于org.apache.geronimo.hook.equinox.GeronimoClassLoader.loadClass(GeronimoClassLoader.java:85)
位于java.lang.ClassLoader.loadClass(ClassLoader.java:358)
位于org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
位于org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
位于org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
位于org.apache.geronimo.gbean.runtime.GBeanInstance。(GBeanInstance.java:248)
... 还有7个
如果我使用普通的Tomcat容器进行尝试,它将成功部署并运行良好。但是应用程序需要一些企业功能,因此需要Geronimo

这似乎是Geronimo层的一个问题,任何建议或提示都将不胜感激


提前谢谢

幸运的是,我可以解决这个问题。以下是步骤:

  • 杀死WASCE进程
  • 修改config.xml以不加载以下两个模块:

    
    
  • 重新启动WASCE,您就可以开始了


  • 字幕:姜明华

    我也在为此挣扎。。你解决这个问题了吗?
    <module load="false" name="org.apache.geronimo.configs/openwebbeans/3.0-w20120730/car"/>
    <module load="false" name="org.apache.geronimo.configs/openwebbeans-deployer/3.0-w20120730/car"/>