Sinn dieser glassfish Warnung: der Kontext-Pfad unterscheidet sich von Bündel
Ich bin mir nicht ganz sicher, was diese Fehlermeldung angezeigt: der
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..
So weit ich das beurteilen kann, scheint es nicht zu sein "application.xml" die Datei...ist das schon veraltet?
thufir@dur:~/NetBeansProjects/SalutationApp/dist$
thufir@dur:~/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
thufir@dur:~/NetBeansProjects/SalutationApp/dist$
thufir@dur:~/NetBeansProjects/SalutationApp/dist$ jar -xf SalutationApp.ear
thufir@dur:~/NetBeansProjects/SalutationApp/dist$
thufir@dur:~/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
thufir@dur:~/NetBeansProjects/SalutationApp/dist$
thufir@dur:~/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
thufir@dur:~/NetBeansProjects/SalutationApp/dist$
thufir@dur:~/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)
thufir@dur:~/NetBeansProjects/SalutationApp/dist$
siehe auch Kommentare hier:
Ist die Application-ejb.jar Datei aufgelistet, in der application.xml Datei in
der META-INF dir der ear-Datei? Ist die Application-ejb.jar in der
Stammverzeichnis der ear-Datei? – Sam Nunnally Nov 24 '13 at 4:03
Einrichten von Enterprise-Anwendung
das macht mich Wundern sich über die Struktur der Anwendung. Derzeit läuft die Anwendung mit den erwarteten Ausgang-einen servlet-Container ruft die EJB.
Was ist dieser Fehler hinweisend?
siehe auch:
https://netbeans.org/bugzilla/show_bug.cgi?id=232326
Du musst angemeldet sein, um einen Kommentar abzugeben.
Dies ist nur eine Warnung, die Sie ignorieren können, wenn Sie wollen.
Die Warnung wird ausgelöst, da Sie wahrscheinlich einen führenden Schrägstrich (d.h.
/
) in Ihrem context-root inglassfish-web.xml
(sollte in derWEB-INF
Ordner des KRIEGES).Können Sie loswerden der Warnung, wenn Sie entfernen Sie den führenden slash, also Ihre
glassfish-web.xml
sieht wie folgt aus:Wenn Sie nicht über eine
glassfish-web.xml
können Sie erstellen, die aussieht, wie im Beispiel. Sie können auch wählen, eine bessere context-root für Ihre Anwendung.