2014-09-09 7 views
8

Io non sono abbastanza sicuro che cosa questo messaggio di errore indica:significato di questo avviso GlassFish: percorso del contesto differisce da fascio

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.. 

Per quanto posso dire, non sembra essere un " application.xml "file ... è stato deprecato?

[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$ 

vedere i commenti anche qui:

è il file Application-ejb.jar elencato nel file application.xml nel META-INF dir del file ear? L'applicazione-ejb.jar si trova nella radice del file ear? - Sam Nunnally 24 novembre '13 a 4:03

Setting up Enterprise Application

che mi fa chiedere circa la struttura della mia candidatura. Attualmente, l'applicazione viene eseguita con l'output previsto, un servlet che richiama un EJB.

Qual è l'indicazione di questo errore?

vedi anche:

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

risposta

9

Questo è solo un avvertimento, si può ignorare se si vuole.

L'avvertimento è sollevata perché probabilmente avete una barra che porta (cioè /) nel vostro contesto-radice glassfish-web.xml (dovrebbe essere nella cartella WEB-INF del WAR).

Si può sbarazzarsi del l'avviso se si rimuove la barra che porta così il vostro glassfish-web.xml simile a questo:

<?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> 

Se non si dispone di un glassfish-web.xml è possibile crearne uno che si presenta come l'esempio. Puoi anche scegliere una migliore root di contesto per la tua applicazione.

Problemi correlati