2014-09-09 1 views
8

다릅니다의미 : 컨텍스트 경로는 내가이 오류 메시지가 표시되는 것을 아주 확실하지 않다 번들

INFO: visiting unvisited references 
INFO: visiting unvisited references 
INFO: visiting unvisited references 
INFO: visiting unvisited references 
INFO: EJB5181:Portable JNDI names for EJB Hello: [java:global/SalutationApp/SalutationApp-ejb/Hello, java:global/SalutationApp/SalutationApp-ejb/Hello!ejb.Hello] 
INFO: Loading application [SalutationApp#SalutationApp-war.war] at [SalutationApp-war] 
INFO: SalutationApp was successfully deployed in 976 milliseconds. 
WARNING: Context path from ServletContext: /SalutationApp-war differs from path from bundle: SalutationApp-war 
INFO: myRemoteMethod.. 

지금까지 내가 말할 수있는, 할 수없는 것 에 " application.xml "파일은 사용되지 않습니다.

[email protected]:~/NetBeansProjects/SalutationApp/dist$ 
[email protected]:~/NetBeansProjects/SalutationApp/dist$ ll 
total 16 
drwxrwxr-x 2 thufir thufir 4096 Sep 9 01:42 ./ 
drwxrwxr-x 8 thufir thufir 4096 Sep 9 01:42 ../ 
-rw-rw-r-- 1 thufir thufir 7139 Sep 9 01:42 SalutationApp.ear 
[email protected]:~/NetBeansProjects/SalutationApp/dist$ 
[email protected]:~/NetBeansProjects/SalutationApp/dist$ jar -xf SalutationApp.ear 
[email protected]:~/NetBeansProjects/SalutationApp/dist$ 
[email protected]:~/NetBeansProjects/SalutationApp/dist$ ll 
total 32 
drwxrwxr-x 3 thufir thufir 4096 Sep 9 01:42 ./ 
drwxrwxr-x 8 thufir thufir 4096 Sep 9 01:42 ../ 
drwxrwxr-x 2 thufir thufir 4096 Sep 9 01:42 META-INF/ 
-rw-rw-r-- 1 thufir thufir 7139 Sep 9 01:42 SalutationApp.ear 
-rw-rw-r-- 1 thufir thufir 1908 Sep 9 01:42 SalutationApp-ejb.jar 
-rw-rw-r-- 1 thufir thufir 4652 Sep 9 01:42 SalutationApp-war.war 
[email protected]:~/NetBeansProjects/SalutationApp/dist$ 
[email protected]:~/NetBeansProjects/SalutationApp/dist$ ll META-INF/ 
total 12 
drwxrwxr-x 2 thufir thufir 4096 Sep 9 01:42 ./ 
drwxrwxr-x 3 thufir thufir 4096 Sep 9 01:42 ../ 
-rw-rw-r-- 1 thufir thufir 103 Sep 9 01:42 MANIFEST.MF 
[email protected]:~/NetBeansProjects/SalutationApp/dist$ 
[email protected]:~/NetBeansProjects/SalutationApp/dist$ cat META-INF/MANIFEST.MF 
Manifest-Version: 1.0 
Ant-Version: Apache Ant 1.9.2 
Created-By: 1.7.0_51-b31 (Oracle Corporation) 

[email protected]:~/NetBeansProjects/SalutationApp/dist$ 

는 여기에 코멘트를 참조하십시오

는 META-INF 디렉토리 귀 파일의 에 application.xml을 파일에 나열된 응용 프로그램 ejb.jar 파일인가? 귀 파일의 루트가 인 Application-ejb.jar입니까? - 4시 3분

내 응용 프로그램의 구조에 대해 궁금합니다

Setting up Enterprise Application

에서 샘 Nunnally 11월 24일 '13. 현재 응용 프로그램은 EJB를 호출하는 예상 출력, 즉 서블릿으로 실행됩니다.

이 오류는 무엇을 나타 냅니까?

또한 참조 : 당신이 원하는 경우

이 단지 경고입니다

https://netbeans.org/bugzilla/show_bug.cgi?id=232326

답변

9

, 당신은 그것을 무시할 수 있습니다.

컨텍스트 루트에 glassfish-web.xml (WAR의 WEB-INF 폴더에 있어야 함)에 슬래시 (예 : /)가있을 수 있으므로 경고 메시지가 표시됩니다.

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd"> 
<glassfish-web-app error-url=""> 
    <context-root>SalutationApp-war</context-root> 
</glassfish-web-app> 

을 당신이 예처럼 보이는 하나 만들 수 glassfish-web.xml이없는 경우 : glassfish-web.xml이 비슷합니다 있도록 선도적 인 슬래시를 제거하면

가 당신은 경고를 제거 할 수 있습니다. 또한 응용 프로그램에 적합한 컨텍스트 루트를 선택할 수도 있습니다.