若是你是用JNDI查找数据源,请修改!其他方面不需要修改就可以直接连接!

解决方案 »

  1.   

    我没有用jndi呀,我在console中deploy,提示说没有web.xml,可是我在web-inf下面有呀
      

  2.   

    你web-inf下一定没有产生weblogic.xml
      

  3.   

    有的,我自己写的,按照书上的例子写的。应该没有问题的亚
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
    <weblogic-web-app/>
      

  4.   

    发布的时候的错误是:
    J2EE:160043]Missing deployment descriptor "WEB-INF/web.xml" at "C:\bea\user_projects\mydomain\myserver\upload\mt\mt.war"在网页上的错误是:
    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.