首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

The server has not found anything matching the Request-URI.

2011-11-11 
myeclipse5.5GA+weblogic9.0,项目部署出现的问题搭建myeclipse5.5GA+weblogic9.0开发环境,配置成功,而且服

myeclipse5.5GA+weblogic9.0,项目部署出现的问题
搭建myeclipse5.5GA+weblogic9.0开发环境,配置成功,而且服务器也能启动,编写了一个jsp文件Hello world测试项目在weblogic上的部署。
WEB-INF下面写了一个weblogic.xml如下:
<?xml version="1.0" encoding="gb2312"?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
  <jsp-descriptor>
  <page-check-seconds>1</page-check-seconds>
  <verbose>true</verbose>
  </jsp-descriptor>
  <context-root>/</context-root>
</weblogic-web-app>
然后在myeclipse下面deploy项目,成功,重启了weblogic如下:出现异常。
<2008-8-6 上午01时57分23秒 CST> <Error> <HTTP> <BEA-101064> <[WebAppModule(webproject:webproject)] Error parsing descriptor in Web appplication "C:\develop\bea\user_projects\domains\hongfeng1126\.\autodeploy\webproject"
weblogic.application.ModuleException: Unmarshaller failed
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:758)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:260)
Truncated. see log file for complete stacktrace
com.bea.xml.XmlException: failed to load java type corresponding to e=web-app@http://java.sun.com/xml/ns/javaee
at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType(UnmarshalResult.java:325)
at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:153)
Truncated. see log file for complete stacktrace

<2008-8-6 上午01时57分23秒 CST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'webproject' due to error weblogic.application.ModuleException: [HTTP:101064][WebAppModule(webproject:webproject)] Error parsing descriptor in Web appplication "C:\develop\bea\user_projects\domains\hongfeng1126\.\autodeploy\webproject"
weblogic.application.ModuleException: Unmarshaller failed
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:758)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:260)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:43)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
Caused by: com.bea.xml.XmlException: failed to load java type corresponding to e=web-app@http://java.sun.com/xml/ns/javaee
at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType(UnmarshalResult.java:325)
at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:292)
at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:302)
at com.bea.staxb.runtime.internal.UnmarshalResult.determineRootType(UnmarshalResult.java:283)
at weblogic.application.descriptor.AbstractDescriptorLoader.getRootDescriptorBean(AbstractDescriptorLoader.java:217)
at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:136)
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:754)
... 23 more

weblogic.application.ModuleException: Unmarshaller failed.
weblogic.application.ModuleException: [HTTP:101064][WebAppModule(webproject:webproject)] Error parsing descriptor in Web appplication "C:\develop\bea\user_projects\domains\hongfeng1126\.\autodeploy\webproject"
weblogic.application.ModuleException: Unmarshaller failed
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:758)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:260)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:90)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)


Caused by: com.bea.xml.XmlException: failed to load java type corresponding to e=web-app@http://java.sun.com/xml/ns/javaee
at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType(UnmarshalResult.java:325)
at weblogic.application.descriptor.AbstractDescriptorLoader.getRootDescriptorBean(AbstractDescriptorLoader.java:217)
at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:136)
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:754)
... 23 more

weblogic.application.ModuleException: Unmarshaller failed
at weblogic.servlet.internal.WebAppModule.createModuleException(WebAppModule.java:950)
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:776)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:260)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:90)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:318)
Truncated. see log file for complete stacktrace
com.bea.xml.XmlException: failed to load java type corresponding to e=web-app@http://java.sun.com/xml/ns/javaee
at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType(UnmarshalResult.java:325)
at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:292)
Truncated. see log file for complete stacktrace

<2008-8-6 上午01时57分24秒 CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> 

利用http://localhost:7000/和http://localhost:7000/webproject 访问失败,提示如下:
Error 404--Not Found 
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
在weblogic admin server console上配置部署,启动项目时提示错误为:
com.bea.xml.XmlException: failed to load java type corresponding to e=web-app@http://java.sun.com/xml/ns/javaee 
请问问题可能出在什么地方?另外,如果将项目部署在tomcat上则能正确显示


[解决办法]
是不是配置文件(xml)出错了?

热点排行