webapp version 2.4 to 2.5 out of memory

孤人 提交于 2019-12-11 18:07:55

问题


I have a requirement to update the EJB version of an application which has a schema version of 2.4, the ejb version being upgraded to is 3.0 which uses annotations, in order for the annotations to be read I need to upgrade the web app version to 2.5. When I do that and go to redeploy the app I see a out of memory error.

Can anyone push me in the right direction as to what is happening here?

00000034 annotations I ArchiveInputStreamData mapData Collision on [ .class ] in [ Demo.war ] 00000034 annotations I ArchiveInputStreamData mapData Collision on [ .class ] in [ Demo.war ] 00000034 annotations I ArchiveInputStreamData mapData Collision on [ .class ] in [ Demo2.war ]

I can't put the whole thread due to privacy, its running on Was 8.0.0.2 and java 6, really after that snippet about I see lots of

  • Processing dump event "systhrow", detail "java/lang/OutOfMemoryError"

Which suggests and out of memory now I had the webapp version of 2.4 previously all I did was change the header to

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">

thanks,

Stefan


回答1:


This is the right header. I don't see version=2.5 line in your dump.

<web-app version="2.5" 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">

Beside this, in absence of error trace, I can guess that your web.xml may not be in order according to new schema rules.

You can still post the error trace. Just remove the classes so that privacy can be maintained. It only becomes guessing games when full or important part of error trace is not present.



来源:https://stackoverflow.com/questions/16734774/webapp-version-2-4-to-2-5-out-of-memory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!