1. 程式人生 > >com.bea.xml.XmlException: failed to load java type corresponding to

com.bea.xml.XmlException: failed to load java type corresponding to 阿新 發佈:2019-01-24

在myeclipse裡部署Weblogic專案(web project)時候的問題

配置:Weblogic9.2  MyEclipse 7.0

第一:瀏覽器瀏覽時,報以下錯誤

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.

第二:仔細檢視,在重新部署的時候,發現一個問題所在的錯誤:

<2009-4-1 下午09時57分03秒 CST> <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\Program Files\bea\user_projects\domains\base_domain\.\autodeploy\webProject/WEB-INF/web.xml of module webProject. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
 at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor
Caused by: com.bea.xml.XmlException: failed to load java type corresponding to

[email protected]://java.sun.com/xml/ns/javaee
 at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType

......

實際上,在網上搜了好多,沒有一個確切的辦法,後面,也是無意中,發現一個外國的網站

https://jira.jboss.org/jira/browse/JBSEAM-2247,感覺看懂一點,我覺得就是web.xml檔案配置錯誤,後面我在Weblogic附帶例子中找了一個web.xml,修改原先的檔案(新建web project自動生成),重新部署,在瀏覽器中瀏覽,O了。

附:

自動生成的web.xml

我修改後的簡單的web.xml

 <?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:j2ee="http://java.sun.com/xml/ns/j2ee">
 
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>

</web-app>

或者

就上面的web.xml檔案我又重新嘗試了一下,為什麼會出現版本不符合的問題,也許是weblogic不支援這個版本,所以我也重新新建一個web project,後來出現一個選擇版本的問題,預設選擇J2EE 1.4,而我們經常選擇前面一個,Jave EE 5.0(因為選擇1.4的有個警告,而5.0沒有警告),這個時候我嘗試用J2EE 1.4,發現自動生成的web.xml已經是上面的了,這告訴我們有的時候還是注意一下版本問題,適當的時候還是需要用一下老的版本,新版本需要支援的。
 

這還是告訴我們不要偷懶了,有的時候,不是什麼都可以用自動生成的。我也是寫這個告訴那些剛學myeclipse和Weblogic的,希望發現這個錯誤的時候,看看我的部落格,能夠幫助你儘快解決問題。

相關推薦

com.bea.xml.XmlException: failed to load java type corresponding to <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f590c8829

在myeclipse裡部署Weblogic專案(web project)時候的問題 配置:Weblogic9.2  MyEclipse 7.0 第一:瀏覽器瀏覽時,報以下錯誤 Error 404--Not Found From RFC 2068 Hypertext T

Java異常(輸出[<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e5a5e2f2d277f2b2b">[email protected]a>問題)

簡單給出一段程式碼說明問題: public class Main { public static void main(String[] args) { d

java.lang.IllegalStateException: Observer <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="20414e44524f49440e5749444745540e614

問題描述: Adapter adapter = new Adapter(context, datas); list.setAdapter(adapter); 在專案中初始化了2次,結果曝出下面的crash: java.lang.IllegalStateException:

java web學習筆記<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="654825260a0b11170a09090017">[email protected]a> @Request

@Controller @RequestMapping(value="/DeviceInfo") 在我們的controller程式碼中看到以上註解,在網上查了一些註解的資料,現總結如下: spring中的註解可以分為兩大類: 1、spring的bean容器的相關注解;或者說

RabbitMQ報錯Error: unable to perform an operation on node <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bdcfdcdfdfd4c9fdc5c5

本文轉載自http://blog.csdn.net/seven_coder/article/details/79091934轉載到自己部落格裡,以待以後可以檢視。erlang的cookie問題排解Google、百度了一通後,大多數都說的是cookie的問題,需要保持C:\Wi

android 新增依賴出現Failed to resolve:"你新增的依賴名" 或者出現 <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="30545552455770735f5d40595c55

首先出現的問題是 [email protected]的問題,經過一波百度之後都說是AS build.gradle版本3.0以上的問題,但是經過一波修改之後並沒有什麼卵用,並沒有解決這個問題,並且出現了新的問題,就是Failed to resolve:.......

git上傳到一半最後報error:failed to push some refs to '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a4c3cdd0e4c3cdd0ccd1c68ac7cbc9"

今天上傳程式碼到git上,上傳一半卡住了,過了一會兒就報: Counting objects: 52, done. Delta compression using up to 2 threads. Compressing objects: 100% (48/48), don

CordovaError: Failed to fetch platform <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2d4e425f49425b4c004c43495f4244496d1b03

CordovaError: Failed to fetch platform [email protected]Error: cmd: Command failed with exit code ENOENT 解決:1、刪除platform資料夾2、刪除C:\Use

git push 時報錯 error: failed to push some refs to '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a3c4cad7e3dbdbdbdbdbdb">[ema

原因:這是一個新建的一個倉庫,提交到github時,沒有 pull下來,導致 github中的README.md檔案不在原生代碼目錄中 $ git push -u origin master To github.com:Houttuyniae/notes.git ! [

【原創】叢集搭建報“Error unable to connect to nodes ['<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="96e4f7f4f4ffe2d6e4fbe7bbf8a7

在rabbitmq叢集搭建時,將rmq-n2和rmq-n3兩節點加入rmq-n1時,報如下錯: 解決辦法: rabbitmq叢集是基於erlang叢集的,而erlang叢集中各節點間的通訊是通過4369埠和25672埠來進行通訊的, 所以:防火牆開啟4369埠和25672埠&nbs

Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a6c7d6d6e6c2c3c4d3c1e7c8c2d4c9cfc2f2c3

Unable to resolve dependency for ':[email protected]/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0. Open File Sh

node-sass 安裝失敗 Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e08e8f8485cd93819393a0d4ced9ced2">[email pr

控制檯執行npm install時報錯,報錯資訊如下:npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! [email protected] postinstall: `node scripts/build.js`npm ERR! Exit status

//home/sxl/miniconda2/lib/libpng16.so.16: undefined reference to `<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c9a0a7afa5a

編譯 caffe的命令中的 make all -j8 時出現: //home/sxl/miniconda2/lib/libpng16.so.16: undefined reference to `[email protected]_1.2.9' collect2: error: ld

spring宣告式事務管理方式( 基於tx和aop名字空間的xml配置<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0922495d7b68677a686a7d6066676865">[email&#

轉自:https://www.cnblogs.com/niceyoo/p/8732891.html 1. 宣告式事務管理分類 宣告式事務管理也有兩種常用的方式, 一種是基於tx和aop名字空間的xml配置檔案,另一種就是基於@Transactional註解。 顯然基於註解的方式更簡單

Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="56372626163233342331">[email prot

今天匯入Android專案的時候突然遇到了一個問題,‘Unable to resolve dependency’ 有點頭疼,然後就在網上找了很多方法,發現都不行,最後發現,原來是 這個檔案的配置出了錯,我新匯入的gradle-4.6-all.zip,我的專案的是gradle-4.4

Java測試<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ecc1be899f98b889819c808d9889c1ac9e899d99899f98ae838895">[email pro

在java的test程式碼中,如果遇到了要傳入@requestBody宣告的引數時,可以使用以下程式碼 String infra = "{\"upperId\":110000,\"areaName\":\"測試BaseArea\",\"remark\":\"備註\"}"; HttpHea

opencv error: undefined reference to `<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e7b3aea1a1b5828683a38e9582849388959ea7a

ubuntu16.04,在make opencv3.4.0 的時候,出現以下錯誤 解決方法: 參考:https://blog.csdn.net/wangchuansnnu/article/details/44241199  在 cmake 時,新增 cmake -D

android Studio 出現:Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4b2a3b3b0b2f2e293e2c

li經千辛萬苦,我的新工程gradle搞定了 但是卻在變異的時候告訴我 Unable to resolve dependency for ':[email protected]/compileClasspath'xxx 等等,導致我的所有的依賴都拿不下來 我去,這不是要我的命嗎 然後又是一

關於 Unable to resolve dependency for ':<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="69081919290d0c0b1c0e28070d1b06000d3d0c1

Android studio升級到3.0往上之後,遇到的最噁心的一件事,本人及其懶惰,從來不寫文章,但這個問題還是要記錄下來。 百度了NNNNN多之後,問題都沒有解決,像關掉"offline work"開關、或者匯入的model 的build版本不一致這種方案,我也不知道發

undefined reference to symbol '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3242465a405753566d415b555f53415972">[email

/usr/bin/ld: CMakeFiles/xxxx/yyyyy.cpp.o: undefined reference to symbol '[email protected]@GLIBC