W Eclipsie mam projekt JSF, a w nim beana, który odwołuje się do encji z projektu JPA. Jest jeszcze trzeci projekt EAR zawierający oba projekty (JSF i JPA). Jednak podczas odpalania strony serwer wyrzuca wyjątek:
exception
javax.servlet.ServletException: Lorg/pom/entities/Przychodnia;
root cause
java.lang.NoClassDefFoundError: Lorg/pom/entities/Przychodnia;
root cause
java.lang.ClassNotFoundException: org.pom.entities.Przychodnia
Podam jeszcze log serwera podczas odpalania:
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
SEVERE: Class [ Lorg/pom/entities/Przychodnia; ] not found. Error while loading [ class org.pom.beany.PrzychodniaBean ]
WARNING: Error in annotation processing: java.lang.NoClassDefFoundError: Lorg/pom/entities/Przychodnia;
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\java\glassfish\glassfishv3\glassfish\modules\autostart, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\user\AppData\Local\Temp\fileinstall-5057582073844635282, felix.fileinstall.filter = null}
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = C:\java\glassfish\glassfishv3\glassfish\domains\domain1\autodeploy\bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = C:\Users\user\AppData\Local\Temp\fileinstall-8465261306210858282, felix.fileinstall.filter = null}
INFO: Initializing Mojarra 2.0.2 (FCS b10) for context '/PrzychodnieLekarskie_JSF'
INFO: Loading application Przychodnie_EAR#PrzychodnieLekarskie_JSF.war at PrzychodnieLekarskie_JSF
INFO: Loading application Przychodnie_EAR#PrzychodnieLekarskie_JSF.war at PrzychodnieLekarskie_JSF
INFO: Loading application Przychodnie_EAR#PrzychodnieLekarskie_JSF.war at PrzychodnieLekarskie_JSF
INFO: Przychodnie_EAR was successfully deployed in 3 359 milliseconds.
Wygląda na to, że projekt JPA, w ogóle nie jesr zdeployowany na serwerze, tylko dlaczego?