2014-11-17 4 views
0

에 배포 할 수 없습니다. JAX-WS를 사용하여 WebService를 개발했으며 LINUX JAVA 64Bit에서 실행되는 WebLogic 12c에 배포 할 수 없습니다. 그러나 동일한 WAR 파일은 JAVA 32Bit을 사용하여 Windows 7에서 실행되는 WebLogic 12c에 배포되며 완벽하게 작동합니다. 여기에 정보가 있습니다. 우리 편에서 어디로/무엇이 잘못 될 수 있었는지 알려주십시오. 미리 감사드립니다WebService를 LINUX

웹 로직 생산 로그인

####<Nov 17, 2014 3:50:36 PM MYT> <Info> <Deployer> <Host> <Managed1> 
<Module GetShipmentChargeDetails.war of application GetShipmentChargeDetails 
     successfully transitioned from STATE_PREPARED to STATE_ADMIN on server Managed1.> 
####<Nov 17, 2014 3:50:36 PM MYT> <Info> <ServletContext-/GetShipmentChargeDetails> 
<No Spring WebApplicationInitializer types detected on classpath> 
<Servlet: "ShipmentChargeWSServlet" failed to preload on 
     startup in Web application: "GetShipmentChargeDetails.war". 
javax.xml.ws.WebServiceException: java.lang.NoClassDefFoundError: 
Could not initialize class com.company.scws.service.GetShipmentChargeDetails 

오류 메시지
웹 서비스는 사전에

<No Spring WebApplicationInitializer types detected on classpath> 

감사와 관련된 스프링을 사용하고 어떤 도움/힌트를 감사하지 않습니다 .

답변

0

마지막으로 나는 무슨 일이 일어나고 있는지 발견했습니다. 기본적으로 WebLogic 12c에서 오류 로그를 오도 할 수 있습니다. 문제가 <No Spring WebApplicationInitializer types detected on classpath> 또는 java.lang.NoClassDefFoundError과 관련이 없습니다.

WebService 클래스가 클래스 패스에서 찾을 수없는 속성 (application.props)을로드하는 다른 클래스의 인스턴스를 가져오고있었습니다. 소포 파일에 대해 NullPointer를 반환하는 대신 WebService 배포시 다른 오류 메시지가 표시되었습니다. APP_PROP_FILE 어떤 클래스 경로에

applicationProps.load(AppUtils.class.getClassLoader().getResourceAsStream(
        APP_PROP_FILE)); 

샘플 조각

static Properties applicationProps; 
    public static synchronized AppUtils getInstance() { 
     if (appUtils == null) 
      appUtils = new AppUtils(); 
     return AppUtils; 
    } 
    public AppUtils() { 
     PropertyConfigurator.configure(System.getProperty("log4j.configuration")); 
     loadProperties(); 
    } 
    public static Properties getApplicationProps() { 
     if (applicationProps == null) 
      loadProperties(); 
     return applicationProps; 
    } 
    private static void loadProperties() { 
     applicationProps = new Properties(); 
     try { 
      applicationProps.load(AppUtils.class.getClassLoader().getResourceAsStream(
        APP_PROP_FILE)); 
     } 
     catch (IOException e) { 
      e.printStackTrace(); 
     } 
    } 
하지 않았다 때문에

오류가 있었다