问题描述
大家好,我用的weblogic10.3加载应用程序,在tomcat下是正常的,但是到weblogic下面出现以下问题,我编译的jdk版本和weblogic运行的jdk版本是一致的,请大侠帮我解决下,谢谢!!!17:32:07,281ERRORDispatcherUtils:245-Couldnotexecuteactionjava.lang.reflect.InvocationTargetExceptionatsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atcom.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:365)atcom.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:217)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:191)atcom.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:137)atcom.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)atcom.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:171)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:100)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)atcom.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:233)atcom.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:198)atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)atcom.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:78)atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)atcn.myapps.base.web.filter.PersistenceFilter.doFilter(PersistenceFilter.java:38)atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)atcn.myapps.base.web.filter.SecurityFilter.doFilter(SecurityFilter.java:196)atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)atweblogic.security.service.SecurityManager.runAs(UnknownSource)atweblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)atweblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)atweblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)atweblogic.work.ExecuteThread.execute(ExecuteThread.java:201)atweblogic.work.ExecuteThread.run(ExecuteThread.java:173)Causedby:java.lang.NoSuchMethodError:enteratorg.mozilla.javascript.ContextFactory.enter(ContextFactory.java:525)atorg.mozilla.javascript.ContextFactory.enter(ContextFactory.java:514)atcn.myapps.core.macro.runner.JavaScriptRunner.<init>(JavaScriptRunner.java:47)atcn.myapps.core.macro.runner.JavaScriptFactory.getInstance(JavaScriptFactory.java:54)atcn.myapps.core.dynaform.view.action.ViewAction.getQueryString(ViewAction.java:525)atcn.myapps.core.dynaform.view.action.ViewAction.getViewDatas(ViewAction.java:501)atcn.myapps.core.dynaform.view.action.ViewAction.displayView(ViewAction.java:409)atcn.myapps.core.dynaform.view.action.ViewAction.doDisplayView(ViewAction.java:206)...53more
解决方案
解决方案二:
没有顶,自己先顶下,别沉了
解决方案三:
struts.xmlInclude标签不能使用通配符,否则不能载入Struts.xmlapplicationContext.xmlHibernate映射文件地址不能是目录,否则找不到资源路径web.xml去掉Springlog4j监听器,否则报错不能设置WebRoot路径。
解决方案四:
antlrjar包与weblogic本身jar包冲突问题
解决方案五:
这位大哥,struts.xml、applicationContext.xml、web.xml都找了,没有问题。你说的antlrjar包与weblogic本身jar包冲突问题,我已经将antlrjar包加入到启动项中,首先加载这个jar文件,但是仍然出现这个问题,希望能给予更个的支持和帮组,谢谢。
解决方案六:
还有一些错误给你看看09:42:36,703INFODWRServlet:51-retrievedsystemconfigurationfile:weblogic.utils.zip.SafeZipFileInputStream@11a8ff309:42:36,734INFODefaultConfiguration:51-Creator'pageflow'notloadedduetoClassNotFoundException.Thisisonlyanproblemifyouwantedtouseit.Cause:Beehive/WeblogicCreatornotavailable.09:42:36,797INFOHibernateBeanConverter:51-FoundHibernate3class:org.hibernate.Hibernate09:42:37,328WARNFileProcessor:59-Websphere/RADdatefailure.Ifyouunderstandwhythismighthappenpleasereporttodwr-usersmailinglist09:42:37,531WARNFileProcessor:59-Websphere/RADdatefailure.Ifyouunderstandwhythismighthappenpleasereporttodwr-usersmailinglist(type<>'100')09:42:50,500ERRORDispatcherUtils:245-Couldnotexecuteactionjava.lang.reflect.InvocationTargetExceptionatsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atcom.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:365)atcom.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:217)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:191)atcom.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:137)atcom.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)atcom.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:81)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.webwork.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:171)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:151)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:100)atcom.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:189)atcom.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)atcom.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:233)atcom.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:198)atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)atcom.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:78)atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)atcn.myapps.base.web.filter.PersistenceFilter.doFilter(PersistenceFilter.java:38)atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)atcn.myapps.base.web.filter.SecurityFilter.doFilter(SecurityFilter.java:196)atweblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)atweblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)atweblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)atweblogic.security.service.SecurityManager.runAs(UnknownSource)atweblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)atweblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)atweblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)atweblogic.work.ExecuteThread.execute(ExecuteThread.java:201)atweblogic.work.ExecuteThread.run(ExecuteThread.java:173)Causedby:java.lang.NoSuchMethodError:enteratorg.mozilla.javascript.ContextFactory.enter(ContextFactory.java:525)atorg.mozilla.javascript.ContextFactory.enter(ContextFactory.java:514)atcn.myapps.core.macro.runner.JavaScriptRunner.<init>(JavaScriptRunner.java:47)atcn.myapps.core.macro.runner.JavaScriptFactory.getInstance(JavaScriptFactory.java:54)atcn.myapps.core.dynaform.form.ejb.Form.recalculateDocument(Form.java:1713)atcn.myapps.core.dynaform.form.ejb.Form.createDocument(Form.java:962)atcn.myapps.core.dynaform.form.ejb.Form.createDocument(Form.java:916)atcn.myapps.core.dynaform.form.ejb.Form.createDocument(Form.java:898)atcn.myapps.core.dynaform.view.action.ViewAction.setCurrentDocument(ViewAction.java:1050)atcn.myapps.core.dynaform.view.action.ViewAction.getViewDatas(ViewAction.java:456)atcn.myapps.core.dynaform.view.action.ViewAction.displayView(ViewAction.java:409)atcn.myapps.core.dynaform.view.action.ViewAction.doDisplayView(ViewAction.java:206)...53more
解决方案七:
自己在定一下
解决方案八:
这么久都没人知道吗,我刚遇到这个问题~!!
解决方案九:
。。。刚解决,应该是你例外一个项目的webcontext-root跟你这个项目重名了
解决方案十:
该回复于2011-04-27 11:18:48被版主删除