无法在其DefaultDomain上的Weblogic上部署WAR

时间:2013-02-19 13:29:26

标签: java weblogic-10.x jdeveloper

我正面临以下问题请帮帮我..

问题:java.io.FileNotFoundException:。\ config \ jps-config.xml

当我使用Jdev工作时部署战争

但是当我使用ANT脚本(外部)部署战争时,我会遇到以下问题......请查看..

这是我的DefaultDomain路径

C:\用户\管理员\应用程序数据\漫游\ JDeveloper中\ system11.1.2.3.39.62.76.1 \默认域\

这是服务器日志..

> oracle.security.jps.config.JpsConfigurationException:
> .\config\jps-config.xml (The system cannot find the file specified) at
> oracle.security.jps.internal.config.xml.XmlConfigurationFactory.initDefaultConfiguration(XmlConfigurationFactory.java:430)
> at
> oracle.security.jps.internal.config.xml.XmlConfigurationFactory.getDefaultConfiguration(XmlConfigurationFactory.java:329)
> at
> oracle.security.jps.internal.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:151)
> at
> oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.(JpsContextFactoryImpl.java:112)
> at sun.reflect.GeneratedConstructorAccessor59.newInstance(Unknown
> Source) at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at
> java.lang.Class.newInstance0(Class.java:355) at
> java.lang.Class.newInstance(Class.java:308) at
> oracle.security.jps.util.JpsUtil.newInstance(JpsUtil.java:190) at
> oracle.security.jps.JpsContextFactory$1.run(JpsContextFactory.java:68)
> at
> oracle.security.jps.JpsContextFactory$1.run(JpsContextFactory.java:66)
> at java.security.AccessController.doPrivileged(Native Method) at
> oracle.security.jps.JpsContextFactory.getContextFactory(JpsContextFactory.java:65)
> at
> oracle.security.jps.internal.policystore.PolicyUtil$2.run(PolicyUtil.java:2826)
> at
> oracle.security.jps.internal.policystore.PolicyUtil$2.run(PolicyUtil.java:2821)
> at java.security.AccessController.doPrivileged(Native Method) at
> oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPDPService(PolicyUtil.java:2821)
> at
> oracle.security.jps.internal.policystore.PolicyUtil.getPDPService(PolicyUtil.java:3097)
> at
> oracle.security.jps.internal.policystore.PolicyUtil.getGrantedAppRoles(PolicyUtil.java:2873)
> at
> oracle.security.jps.internal.jaas.JpsAbsSubjectResolver$5.run(JpsAbsSubjectResolver.java:497)
> at
> oracle.security.jps.internal.jaas.JpsAbsSubjectResolver$5.run(JpsAbsSubjectResolver.java:487)
> at java.security.AccessController.doPrivileged(Native Method) at
> oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.getApplicationRoles(JpsAbsSubjectResolver.java:487)
> at
> oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.createJpsSubject(JpsAbsSubjectResolver.java:334)
> at
> oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.getAnonymousSubject(JpsAbsSubjectResolver.java:319)
> at
> oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.resolveJpsSubject(JpsAbsSubjectResolver.java:258)
> at
> oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.resolveSubject(JpsAbsSubjectResolver.java:214)
> at
> oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
> at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
> at
> oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
> at
> weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
> at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
> at
> weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
> at
> weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
> at
> weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
> at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at
> weblogic.work.ExecuteThread.run(ExecuteThread.java:178) Caused by:
> java.io.FileNotFoundException: .\config\jps-config.xml (The system
> cannot find the file specified) at java.io.FileInputStream.open(Native
> Method) at java.io.FileInputStream.(FileInputStream.java:106) at
> oracle.security.jps.internal.common.util.XmlSchemaValidationUtil.doValidation(XmlSchemaValidationUtil.java:96)
> at
> oracle.security.jps.internal.config.xml.XmlConfigurationFactory.initDefaultConfiguration(XmlConfigurationFactory.java:409)
> ... 43 more

为此我已经将我的jsp-config.xml从... DefaultDomain \ config \ fmwconfig复制到DefaultDomain \ config \然后我能够解决这个问题..但是我又得到了一些政策相关的privillageAcess异常可能是 我需要将此文件放在正确的位置......

2 个答案:

答案 0 :(得分:0)

对于ADF应用程序,您需要部署EAR而不是WAR。 看到: https://blogs.oracle.com/shay/entry/common_pitfalls_when_deploying

答案 1 :(得分:0)

要解决此问题 issue:java.io.FileNotFoundException:。\ config \ jps-config.xml

您需要放置代码         System.setProperty(" oracle.security.jps.config"" C:\用户\用户\应用程序数据\漫游\ JDeveloper中\ system11.1.1.7.40.64.93 \默认域\配置\ fmwconfig \ JPS-config.xml的&#34); 然后它将被解决。