浏览 1812 次
|
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
|---|---|
| 作者 | 正文 |
|
时间:2006-09-06
我发到dev2dev上没人解答啊,只好发这里了
主要是做weblogic portal的一个配置(WLP) 问题如下 ----------------------------------------------------------------------------------- 在web.xml中加入 <security-constraint> <display-name>Security Constraint on Conversation </display-name> <web-resource-collection> <web-resource-name>Conversation web service </web-resource-name> <url-pattern>/*</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> </web-resource-collection> <auth-constraint> <role-name>*</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>CLIENT-CERT</auth-method> </login-config> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> 后出现如下的错误,屏蔽后可正常启动 <2006-9-5 下午03时08分43秒 CST> <Warning> <HTTP> <BEA-101248> <[Application: 'E: \prtratalSSOTest', Module: 'Untitled']: Deployment descriptor "web.xml" is malfo rmed. Check against the DTD: org.xml.sax.SAXParseException: The content of eleme nt type "web-app" must match "(icon?,display-name?,description?,distributable?,c ontext-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sessio n-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref* ,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb- ref*,ejb-local-ref*)". (line 587, column 11).> <2006-9-5 下午03时08分43秒 CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating Deploy task for application prtratalSSOTest.> <2006-9-5 下午03时08分43秒 CST> <Error> <Deployer> <BEA-149201> <Failed to compl ete the deployment task with ID 0 for the application prtratalSSOTest. weblogic.management.ApplicationException: Exception:weblogic.management.ApplicationException: Prepare failed. Task Id = 0 Module: Untitled Error: [HTTP:101179][HTTP] Error occurred while parsing descriptor in Web application "E:\prtratalSSOTest\.workshop\output\Untit led" [Path="E:\prtratalSSOTest", URI="Untitled" weblogic.xml.dom.ChildCountException: extra child welcome-file-list in web-app at weblogic.xml.dom.DOMUtils.getOptionalElementByTagName(Lorg.w3c.dom.El ement;Ljava.lang.String;)Lorg.w3c.dom.Element;(DOMUtils.java:182) at weblogic.servlet.internal.dd.WebAppDescriptor.<init>(Lorg.w3c.dom.Ele ment;)V(WebAppDescriptor.java:214) at weblogic.servlet.internal.dd.DescriptorLoader.initializeWebXml(Lorg.x ml.sax.InputSource;Ljava.lang.String;Z)V(DescriptorLoader.java:717) at weblogic.servlet.internal.dd.DescriptorLoader.<init>(Lweblogic.utils. jars.VirtualJarFile;Ljava.io.File;Ljava.lang.String;Ljava.lang.String;)V(Descrip torLoader.java:418) at weblogic.servlet.internal.dd.DescriptorLoader.<init>(Lweblogic.utils. jars.VirtualJarFile;Ljava.lang.String;Ljava.lang.String;)V(DescriptorLoader.java :327) at weblogic.servlet.internal.WebAppModule.loadDescriptor()Lweblogic.mana gement.descriptors.TopLevelDescriptorMBean;(WebAppModule.java:553) at weblogic.j2ee.J2EEApplicationContainer.loadDescriptors([Lweblogic.j2e e.J2EEApplicationContainer$Component;Ljava.lang.String;ZLjava.lang.String;)V(J2E EApplicationContainer.java:1398) at weblogic.j2ee.J2EEApplicationContainer.prepare([Lweblogic.j2ee.J2EEAp plicationContainer$Component;[Ljava.lang.String;Ljava.lang.String;Ljava.lang.Str ing;)V(J2EEApplicationContainer.java:1223) at weblogic.j2ee.J2EEApplicationContainer.prepare(Ljava.lang.String;[Lwe blogic.management.configuration.ComponentMBean;[Ljava.lang.String;)V(J2EEApplica tionContainer.java:1070) at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask. prepareContainer()V(SlaveDeployer.java:2513) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createCon tainer()Z(SlaveDeployer.java:2463) at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare() V(SlaveDeployer.java:2379) at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Lwe blogic.management.deploy.OamVersion;Lweblogic.management.runtime.DeploymentTaskR untimeMBean;Z)V(SlaveDeployer.java:866) at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(Lweblogic .management.deploy.OamDelta;Lweblogic.management.deploy.OamVersion;ZLjava.lang.S tringBuffer;)Z(SlaveDeployer.java:594) at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(Ljava.ut il.ArrayList;Z)V(SlaveDeployer.java:508) at weblogic.drs.internal.SlaveCallbackHandler$1.execute(Lweblogic.kernel .ExecuteThread;)V(SlaveCallbackHandler.java:25) at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest ;)V(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178) at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Sourc e) weblogic.xml.dom.ChildCountException: extra child welcome-file-list in web-app ------------------------------------------------------------------------------------- 好象有人说是 <welcome-file-list>的位置不对 拜一下-_-# 声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
|
| 返回顶楼 | |
|
时间:2006-09-06
XML文件内容不符合DTD格式的问题都还得听人家说? 随便用个XML工具或看看DTD不就摆平了? 你这个里把 <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> 放到 <security-constraint> 前即可了... |
|
| 返回顶楼 | |




