本帖最后由 msdn47 于 2014-07-01 16:11:15 编辑

解决方案 »

  1.   

     \dleware\user_projects\domains\test_domain\servers\AdminServer\tmp\_WL_user\oms\a6p7y0\war\WEB-INF\classes\application.properties (系统找不到指定的路径。)
    我猜是下面的原因:
    tomcat下的war包在启动的时候会自动解压war包为文件夹,但weblogic不会,所以一些classpath就读取不到了。楼主把war包解压为文件夹的形式重启下试试看
      

  2.   

    Requested bean is currently in creation: Is there an unresolvable circular reference?maven重新构建jar
      

  3.   

    你是说从新构建war包吗。。试了没效果
      

  4.   

    你在代码中有获取classpath的代码吗?是否根据classpath路径拼接读取配置文件呢?
      

  5.   

    没有啊。web.xml里配置的路径
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
        <display-name>CIDP :: SCHEDULE-WEB</display-name>    <filter>
            <filter-name>shiroFilter</filter-name>
            <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
            <init-param>
                <param-name>targetFilterLifecycle</param-name>
                <param-value>true</param-value>
            </init-param>
        </filter>
        <filter-mapping>
            <filter-name>shiroFilter</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>    <filter>
            <filter-name>action2</filter-name>
            <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>action2</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>    <!-- cxf webservice -->
        <servlet>
            <servlet-name>CXFServlet</servlet-name>
            <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>CXFServlet</servlet-name>
            <url-pattern>/webservice/*</url-pattern>
        </servlet-mapping>    <!-- Spring的ApplicationContext载入 -->
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>    <!-- Spring刷新Introspector防止内存泄露 -->
        <listener>
            <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
        </listener>    <context-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>
                classpath*:spring/applicationContext.xml
                classpath*:spring/applicationContext-cache.xml
                classpath*:spring/applicationContext-system.xml
                classpath*:spring/applicationContext-schedule.xml
            </param-value>
        </context-param>    <!-- Welcome file lists -->
        <welcome-file-list>
            <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>    <!-- 默认的Session超时时间 -->
        <session-config>
            <session-timeout>30</session-timeout>
        </session-config>
    </web-app>
      

  6.   

    楼主,你先创建一个最简单的servlet工程,里面就一个index.jsp页面,然后部署到weblogic中,看能否部署成功,能否正常访问。
      

  7.   


    我这边好几个tomcat移植过来的工程。都 发布成功了。就这一个不行
      

  8.   

    楼主这个问题,之前搞WebLogic时还真没遇到过,就遇到过读不到classpath路径的情况
    zip:D:/Middleware/user_projects/domains/test_domain/servers/AdminServer/tmp/_WL_user/oms/a6p7y0/war/WEB-INF/lib/_wl_cls_gen.jar!/spring/applicationContext-system.xml 这个路径有吗?怎么是zip开头的呢?楼主知道原因吗?楼主的包是zip的吗?
      

  9.   

    那个路径是有的。。因为是war包吧。所以zip开头
    我觉得问题出在下面这个路径
    \dleware\user_projects\domains\test_domain\servers\AdminServer\tmp\_WL_user\oms\yx2y6a\war\WEB-INF\classes\application.properties (系统找不到指定的路径。)路径开头这个\dleware就不对。。应该是d:\Middleware\user_project..........不知道为啥前面好像被截取了一样
      

  10.   

    改为解压的文件夹的形式,然后重新部署下,然后启动,看看后面的错误日志。weblogic的问题不是很好解决,耐心点,慢慢来吧