Jonas5.10 Springを使用したプロジェクトの導入エラー


に基づいて
 
次は、Jonasの起動中に放出された例外情報です.
 
been ignored.:49:59,887 : WARDeployer.doDeploy : Deploying NITS.war
2009-11-12 20:50:12,527 : ApplicationContext.log : Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
2009-11-12 20:50:12,590 : StandardContext.listenerStart : Exception sending context initialized even
t to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoSuchMethodError: org.springframework.util.Assert.noNullElements([Ljava/lang/Object;Ljava
/lang/String;)V
        at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfig
Locations(AbstractRefreshableConfigApplicationContext.java:78)
        at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.setConfig
Location(AbstractRefreshableConfigApplicationContext.java:69)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.j
ava:253)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.jav
a:199)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderLis
tener.java:45)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
        at org.ow2.jonas.web.tomcat6.JOnASStandardContext.start(JOnASStandardContext.java:273)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
        at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
        at org.ow2.jonas.web.tomcat6.Tomcat6Service.__doRegisterWar(Tomcat6Service.java:698)
        at org.ow2.jonas.web.tomcat6.Tomcat6Service.doRegisterWar(Tomcat6Service.java)
        at org.ow2.jonas.web.base.BaseWebContainerService.registerWar(BaseWebContainerService.java:9
18)
        at org.ow2.jonas.web.base.BaseWebContainerService.registerWar(BaseWebContainerService.java:1
074)
        at org.ow2.jonas.web.tomcat6.Tomcat6Service.__registerWar(Tomcat6Service.java:1353)
        at org.ow2.jonas.web.tomcat6.Tomcat6Service.registerWar(Tomcat6Service.java)
        at org.ow2.jonas.web.base.proxy.HttpOnDemandProxy.addWar(HttpOnDemandProxy.java:358)
        at org.ow2.jonas.web.base.WARDeployer.doDeploy(WARDeployer.java:70)
        at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.java:89)
        at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerManager.java:129)
        at org.ow2.jonas.deployablemonitor.DeployableMonitor.checkModifiedDeployables(DeployableMoni
tor.java:664)
        at org.ow2.jonas.deployablemonitor.DeployableMonitor.access$100(DeployableMonitor.java:68)
        at org.ow2.jonas.deployablemonitor.DeployableMonitor$2.execute(DeployableMonitor.java:300)
        at org.ow2.jonas.deployablemonitor.DeployableMonitor$2.execute(DeployableMonitor.java:299)
        at org.ow2.jonas.lib.execution.RunnableHelper.execute(RunnableHelper.java:60)
        at org.ow2.jonas.deployablemonitor.DeployableMonitor.updateArchives(DeployableMonitor.java:3
06)
        at org.ow2.jonas.deployablemonitor.DeployableMonitor.run(DeployableMonitor.java:176)

 
私たちはいろいろな解決策を試みたが、問題を解決できなかったので、Jonas組織にメールで尋ねるしかなかった.すぐに答えられ、与えられた解決策は確かに私たちの問題を解決しました.回答は次のとおりです.
と書く
You should add
org.springframework.*
net.sf.cglib.*
org.objectweb.asm.*
In the JONAS_BASE/conf/classloader-default-filtering.xml file
私たちはさらにこのような原因と、このような間違いを避ける方法を尋ねました.
と書く
Depending on the services that you're launching (for example jaxws service), spring bundle is loaded.
Then, there was a conflict between the version exported by JOnAS and the version that you want to use.
By using classloader-default-filtering.xml, it means that the packages listed in this file are not exported to the applications.
So, in your case, by adding "org.springframework.* ", spring packages are no more seen by your application.
But by using only this line, you'll see others NoClassDefFoundError as spring is using other components that are still exported by JOnAS
Using the "trial and error"approach, the final list of packages is the list that I gave you