Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Victor AMORIM
Portlet Struts avec SDK + Service-builder
May 7, 2010 2:22 AM
Answer

Victor AMORIM

Rank: Junior Member

Posts: 70

Join Date: April 26, 2010

Recent Posts

Salut,

Je développe une portlet struts pour interagir avec une base de données MySql.
J'utilise le plugin SDK et le build-service.
J'ai commencé par créer le fichier service.xml, puis j'ai utilisé le service-buider.
Après avoir ajouté les méthodes pour créer de nouvelles entrées dans la base de données j'ai utilisé a nouveau le service-builder.
Ensuite j'ai déployé avec Ant, quand j'ai démarré le serveur Tomcat, j'ai cette erreur:
1
2ERROR [PortletApplicationContext:81] org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem:
3Class that bean class [com.portlet.annuaire.service.impl.DemandeLocalServiceImpl]
4depends on not found


j'ai remarqué que cela pourrait venir du fait que dans docroot/WEB-INF/lib je n'ai pas de fichier .jar avec le nom de mon portlet. Cela pourrait expliquer pourquoi il ne trouve pas ce qu'il cherche pour le bean. Mais je ne sais à quel moment il créer ce fichier .jar.

et la suivante:

 115:48:17,526 ERROR [PortletServlet:104] javax.portlet.PortletException: org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP:
 2
 3An error occurred at line: 27 in the generated java file
 4Only a type can be imported. com.portlet.annuaire.model.EntreeAnnuaire resolves to a package
 5
 6Une erreur s'est produite ├»┬┐┬¢ la ligne: 12 dans le fichier jsp: /html/portle/struts_portlet/view.jsp
 7EntreeAnuaire cannot be resolved to a type
 8
 910: <!-- On r´┐¢cup´┐¢re la liste de toutes les demandes contenues dans la base
10-->
1111: <%
1212: List<EntreeAnuaire> entreeAnnuaires =
1313:     EntreeAnnuaireLocalServiceUtil.getEntreeAnnuaires(
1414:                     QueryUtil.ALL_POS, QueryUtil.ALL_POS);
1515: %>


Pour résoudre ce problème j'ai essayé d'importer des tout le package comme ci-dessous:
<% @ Page import = "com.portlet.annuaire.service .*"%>
<% @ Page import = "com.portlet.annuaire.model .*"%>
Mais cela n'a pas fonctionné.

Merci de bien vouloir m'aider a résoudre ces problèmes.

Ma configuration:
Eclipse Europa
Liferay-portal-5.2.3 avec Tomcat 6.0.18
jdk1.5.0_13
Liferay Geek
RE: Portlet Struts avec SDK + Service-builder
May 7, 2010 2:52 AM
Answer

Liferay Geek

Rank: Junior Member

Posts: 25

Join Date: March 24, 2010

Recent Posts

Bonjour,

Pourriez vous SVP nous indiquer ce qu'il y a à l'intérieur du fichier service.xml. Je pense que cela aiderait à trouver d'où vient l'erreur.
Je suis par exemple étonné par l'erreur "EntreeAnuaire cannot be resolved to a type"
"Anuaire" y est écrit avec un seul "n", alors que dans d'autres sections je le vois parfois écrit avec deux "nn". Il y a peut être un problème à ce niveau. Le contenu du fichier service.xml permettra de se faire une meilleure idée.
Victor AMORIM
RE: Portlet Struts avec SDK + Service-builder
May 7, 2010 3:37 AM
Answer

Victor AMORIM

Rank: Junior Member

Posts: 70

Join Date: April 26, 2010

Recent Posts

Bonjour,

Merci pour votre aide.

Pour simplifier les choses et éviter des erreur de manipulation j'ai refait un nouveau struts portlet avec dans le service.xml une seul entity "Demande" qui remplace la "EntreeAnnuaire". voici le service.xml:

 1<?xml version="1.0" ?>
 2
 3<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 5.2.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_5_2_0.dtd">
 4
 5<!--  Chemin des classes qui seront générées automatiquement -->
 6<service-builder package-path="com.portlet.annuaire">
 7
 8    <author>Victor AMORIM</author>
 9
10    <!--  Le namespace précède le nom de toutes les tables-->
11    <namespace>Proxiad</namespace>
12
13    <!-- Nom de la table qui sera crée  -->
14    <entity name="Demande" local-service="true" remote-service="true">
15
16        <!--  Clé primaire de la table-->
17        <!-- On utilise une class IDGenerator pour généré la clé primaire,
18        cela permet d'ajouter des tuples à la tables avec différents processus -->
19        <column name="idDemande" type="long" primary="true" id-type="class"
20            id-param="com.liferay.counter.service.persistence.IDGenerator" />
21
22        <!-- Autres champs de la table -->
23        <column name="nomEntree" type="String" />
24        <column name="fonction" type="String" />
25        <column name="telephone" type="int" />    
26        <column name="portable" type="int" />
27        <column name="fax" type="int" />
28        <column name="email" type="String" />
29        <column name="matricule" type="String" />
30        <column name="site" type="String" />
31        <column name="numeroAutocom" type="int" />
32        <column name="remarque" type="String" />
33        <column name="typeContrat" type="String" />
34        <column name="dateDebut" type="Date" />
35        <column name="dateFin" type="Date" />
36
37    </entity>
38   
39    <exceptions>
40        <exception>Demande</exception>
41    </exceptions>
42</service-builder>


Pour ce qui est de l'erreur lorsque j'ai déployé le portlet, dans tomcat j'ai:
  110:07:10,300 ERROR [PortletApplicationContext:81] org.springframework.beans.fact
  2ory.parsing.BeanDefinitionParsingException: Configuration problem: Class that be
  3an class [com.portlet.annuaire.service.impl.DemandeLocalServiceImpl] depends on
  4not found
  5Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/portlet-s
  6pring.xml]
  7Bean 'com.portlet.annuaire.service.DemandeLocalService.impl'; nested exception i
  8s java.lang.NoClassDefFoundError: com/portlet/annuaire/service/DemandeLocalServi
  9ce
 10org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Config
 11uration problem: Class that bean class [com.portlet.annuaire.service.impl.Demand
 12eLocalServiceImpl] depends on not found
 13Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/portlet-s
 14pring.xml]
 15Bean 'com.portlet.annuaire.service.DemandeLocalService.impl'; nested exception i
 16s java.lang.NoClassDefFoundError: com/portlet/annuaire/service/DemandeLocalServi
 17ce
 18        at org.springframework.beans.factory.parsing.FailFastProblemReporter.err
 19or(FailFastProblemReporter.java:68)
 20        at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderC
 21ontext.java:85)
 22        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.er
 23ror(BeanDefinitionParserDelegate.java:288)
 24        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
 25rseBeanDefinitionElement(BeanDefinitionParserDelegate.java:487)
 26        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
 27rseBeanDefinitionElement(BeanDefinitionParserDelegate.java:389)
 28        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
 29rseBeanDefinitionElement(BeanDefinitionParserDelegate.java:358)
 30        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
 31ader.processBeanDefinition(DefaultBeanDefinitionDocumentReader.java:239)
 32        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
 33ader.parseDefaultElement(DefaultBeanDefinitionDocumentReader.java:153)
 34        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
 35ader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:132)
 36        at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentRe
 37ader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
 38        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe
 39rBeanDefinitions(XmlBeanDefinitionReader.java:507)
 40        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB
 41eanDefinitions(XmlBeanDefinitionReader.java:398)
 42        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
 43nDefinitions(XmlBeanDefinitionReader.java:342)
 44        at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea
 45nDefinitions(XmlBeanDefinitionReader.java:310)
 46        at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
 47r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
 48        at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
 49r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
 50        at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
 51r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
 52        at com.liferay.portal.spring.context.PortletApplicationContext.loadBeanD
 53efinitions(PortletApplicationContext.java:70)
 54        at org.springframework.web.context.support.XmlWebApplicationContext.load
 55BeanDefinitions(XmlWebApplicationContext.java:92)
 56        at org.springframework.context.support.AbstractRefreshableApplicationCon
 57text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
 58        at org.springframework.context.support.AbstractApplicationContext.obtain
 59FreshBeanFactory(AbstractApplicationContext.java:422)
 60        at org.springframework.context.support.AbstractApplicationContext.refres
 61h(AbstractApplicationContext.java:352)
 62        at org.springframework.web.context.ContextLoader.createWebApplicationCon
 63text(ContextLoader.java:255)
 64        at org.springframework.web.context.ContextLoader.initWebApplicationConte
 65xt(ContextLoader.java:199)
 66        at org.springframework.web.context.ContextLoaderListener.contextInitiali
 67zed(ContextLoaderListener.java:45)
 68        at com.liferay.portal.spring.context.PortletContextLoaderListener.contex
 69tInitialized(PortletContextLoaderListener.java:78)
 70        at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextList
 71ener.portalInit(PortalClassLoaderServletContextListener.java:90)
 72        at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitable
 73Util.java:48)
 74        at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextList
 75ener.contextInitialized(PortalClassLoaderServletContextListener.java:74)
 76        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
 77t.java:3843)
 78        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
 79342)
 80        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
 81.java:791)
 82        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
 831)
 84        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
 85
 86        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
 87a:926)
 88        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
 89ava:889)
 90        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492
 91)
 92        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
 93        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
 94:311)
 95        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
 96eSupport.java:117)
 97        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 98
 99        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
100        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
101
102        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
103)
104        at org.apache.catalina.core.StandardService.start(StandardService.java:5
10516)
106        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
107)
108        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
109        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
110        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
111java:39)
112        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
113sorImpl.java:25)
114        at java.lang.reflect.Method.invoke(Method.java:585)
115        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
116        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
117Caused by: java.lang.NoClassDefFoundError: com/portlet/annuaire/service/DemandeL
118ocalService
119        at java.lang.ClassLoader.defineClass1(Native Method)
120        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
121        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
1224)
123        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
124ClassLoader.java:1847)
125        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
126der.java:890)
127        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
128der.java:1354)
129        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
130der.java:1233)
131        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
132        at java.lang.ClassLoader.defineClass1(Native Method)
133        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
134        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
1354)
136        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(Webapp
137ClassLoader.java:1847)
138        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoa
139der.java:890)
140        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
141der.java:1354)
142        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
143        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
144        at com.liferay.portal.kernel.util.AggregateClassLoader.loadClass(Aggrega
145teClassLoader.java:43)
146        at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
147        at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.c
148reateBeanDefinition(BeanDefinitionReaderUtils.java:89)
149        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.cr
150eateBeanDefinition(BeanDefinitionParserDelegate.java:610)
151        at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.pa
152rseBeanDefinitionElement(BeanDefinitionParserDelegate.java:465)
153        ... 49 more
15410:07:10,340 INFO  [DialectDetector:64] Determining dialect for MySQL 5
15510:07:10,342 INFO  [DialectDetector:97] Using dialect org.hibernate.dialect.MySQ
156LDialect
15710:07:10,391 ERROR [ContextLoader:215] Context initialization failed
158org.springframework.beans.factory.BeanCreationException: Error creating bean wit
159h name 'transactionAdvice' defined in ServletContext resource [/WEB-INF/classes/
160META-INF/base-spring.xml]: Cannot resolve reference to bean 'liferayTransactionM
161anager' while setting bean property 'transactionManager'; nested exception is or
162g.springframework.beans.factory.BeanCreationException: Error creating bean with
163name 'liferayTransactionManager' defined in ServletContext resource [/WEB-INF/cl
164asses/META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'liferayH
165ibernateSessionFactory' while setting bean property 'sessionFactory'; nested exc
166eption is org.springframework.beans.factory.BeanCreationException: Error creatin
167g bean with name 'liferayHibernateSessionFactory' defined in ServletContext reso
168urce [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation of init method
169 failed; nested exception is org.hibernate.MappingException: entity class not fo
170und: com.portlet.annuaire.model.impl.DemandeImpl
171        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
172.resolveReference(BeanDefinitionValueResolver.java:275)
173        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
174.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
175        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
176Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
177        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
178Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
179        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
180Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
181        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
182Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
183        at java.security.AccessController.doPrivileged(Native Method)
184        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
185Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
186        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
187ject(AbstractBeanFactory.java:264)
188        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
189y.getSingleton(DefaultSingletonBeanRegistry.java:222)
190        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
191an(AbstractBeanFactory.java:261)
192        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
193(AbstractBeanFactory.java:185)
194        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
195(AbstractBeanFactory.java:164)
196        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
197preInstantiateSingletons(DefaultListableBeanFactory.java:429)
198        at org.springframework.context.support.AbstractApplicationContext.finish
199BeanFactoryInitialization(AbstractApplicationContext.java:728)
200        at org.springframework.context.support.AbstractApplicationContext.refres
201h(AbstractApplicationContext.java:380)
202        at org.springframework.web.context.ContextLoader.createWebApplicationCon
203text(ContextLoader.java:255)
204        at org.springframework.web.context.ContextLoader.initWebApplicationConte
205xt(ContextLoader.java:199)
206        at org.springframework.web.context.ContextLoaderListener.contextInitiali
207zed(ContextLoaderListener.java:45)
208        at com.liferay.portal.spring.context.PortletContextLoaderListener.contex
209tInitialized(PortletContextLoaderListener.java:78)
210        at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextList
211ener.portalInit(PortalClassLoaderServletContextListener.java:90)
212        at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitable
213Util.java:48)
214        at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextList
215ener.contextInitialized(PortalClassLoaderServletContextListener.java:74)
216        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
217t.java:3843)
218        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
219342)
220        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
221.java:791)
222        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
2231)
224        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
225
226        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
227a:926)
228        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
229ava:889)
230        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492
231)
232        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
233        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
234:311)
235        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
236eSupport.java:117)
237        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
238
239        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
240        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
241
242        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
243)
244        at org.apache.catalina.core.StandardService.start(StandardService.java:5
24516)
246        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
247)
248        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
249        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
250        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
251java:39)
252        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
253sorImpl.java:25)
254        at java.lang.reflect.Method.invoke(Method.java:585)
255        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
256        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
257Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
258ng bean with name 'liferayTransactionManager' defined in ServletContext resource
259 [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Cannot resolve reference to b
260ean 'liferayHibernateSessionFactory' while setting bean property 'sessionFactory
261'; nested exception is org.springframework.beans.factory.BeanCreationException:
262Error creating bean with name 'liferayHibernateSessionFactory' defined in Servle
263tContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation o
264f init method failed; nested exception is org.hibernate.MappingException: entity
265 class not found: com.portlet.annuaire.model.impl.DemandeImpl
266        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
267.resolveReference(BeanDefinitionValueResolver.java:275)
268        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
269.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
270        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
271Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
272        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
273Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
274        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
275Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
276        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
277Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
278        at java.security.AccessController.doPrivileged(Native Method)
279        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
280Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
281        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
282ject(AbstractBeanFactory.java:264)
283        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
284y.getSingleton(DefaultSingletonBeanRegistry.java:222)
285        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
286an(AbstractBeanFactory.java:261)
287        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
288(AbstractBeanFactory.java:185)
289        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
290(AbstractBeanFactory.java:164)
291        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
292.resolveReference(BeanDefinitionValueResolver.java:269)
293        ... 46 more
294Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
295ng bean with name 'liferayHibernateSessionFactory' defined in ServletContext res
296ource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation of init metho
297d failed; nested exception is org.hibernate.MappingException: entity class not f
298ound: com.portlet.annuaire.model.impl.DemandeImpl
299        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
300Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
301        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
302Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
303        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
304Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
305        at java.security.AccessController.doPrivileged(Native Method)
306        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
307Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
308        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
309ject(AbstractBeanFactory.java:264)
310        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
311y.getSingleton(DefaultSingletonBeanRegistry.java:222)
312        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
313an(AbstractBeanFactory.java:261)
314        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
315(AbstractBeanFactory.java:185)
316        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
317(AbstractBeanFactory.java:164)
318        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
319.resolveReference(BeanDefinitionValueResolver.java:269)
320        ... 59 more
321Caused by: org.hibernate.MappingException: entity class not found: com.portlet.a
322nnuaire.model.impl.DemandeImpl
323        at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.
324java:122)
325        at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:19
3261)
327        at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyF
328actory.java:67)
329        at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.jav
330a:147)
331        at org.hibernate.persister.entity.AbstractEntityPersister.<init>(Abstrac
332tEntityPersister.java:457)
333        at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(Sing
334leTableEntityPersister.java:131)
335        at org.hibernate.persister.PersisterFactory.createClassPersister(Persist
336erFactory.java:84)
337        at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:
338261)
339        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
340a:1327)
341        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSession
342Factory(LocalSessionFactoryBean.java:814)
343        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessi
344onFactory(LocalSessionFactoryBean.java:732)
345        at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPr
346opertiesSet(AbstractSessionFactoryBean.java:211)
347        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
348Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
349        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
350Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
351        ... 69 more
352Caused by: java.lang.ClassNotFoundException: com.portlet.annuaire.model.impl.Dem
353andeImpl
354        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
355der.java:1387)
356        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
357der.java:1233)
358        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
359        at java.lang.Class.forName0(Native Method)
360        at java.lang.Class.forName(Class.java:164)
361        at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:123)
362
363        at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.
364java:119)
365        ... 82 more
36610:07:10,408 ERROR [PortalClassLoaderServletContextListener:93] org.springframew
367ork.beans.factory.BeanCreationException: Error creating bean with name 'transact
368ionAdvice' defined in ServletContext resource [/WEB-INF/classes/META-INF/base-sp
369ring.xml]: Cannot resolve reference to bean 'liferayTransactionManager' while se
370tting bean property 'transactionManager'; nested exception is org.springframewor
371k.beans.factory.BeanCreationException: Error creating bean with name 'liferayTra
372nsactionManager' defined in ServletContext resource [/WEB-INF/classes/META-INF/h
373ibernate-spring.xml]: Cannot resolve reference to bean 'liferayHibernateSessionF
374actory' while setting bean property 'sessionFactory'; nested exception is org.sp
375ringframework.beans.factory.BeanCreationException: Error creating bean with name
376 'liferayHibernateSessionFactory' defined in ServletContext resource [/WEB-INF/c
377lasses/META-INF/hibernate-spring.xml]: Invocation of init method failed; nested
378exception is org.hibernate.MappingException: entity class not found: com.portlet
379.annuaire.model.impl.DemandeImpl
380org.springframework.beans.factory.BeanCreationException: Error creating bean wit
381h name 'transactionAdvice' defined in ServletContext resource [/WEB-INF/classes/
382META-INF/base-spring.xml]: Cannot resolve reference to bean 'liferayTransactionM
383anager' while setting bean property 'transactionManager'; nested exception is or
384g.springframework.beans.factory.BeanCreationException: Error creating bean with
385name 'liferayTransactionManager' defined in ServletContext resource [/WEB-INF/cl
386asses/META-INF/hibernate-spring.xml]: Cannot resolve reference to bean 'liferayH
387ibernateSessionFactory' while setting bean property 'sessionFactory'; nested exc
388eption is org.springframework.beans.factory.BeanCreationException: Error creatin
389g bean with name 'liferayHibernateSessionFactory' defined in ServletContext reso
390urce [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation of init method
391 failed; nested exception is org.hibernate.MappingException: entity class not fo
392und: com.portlet.annuaire.model.impl.DemandeImpl
393        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
394.resolveReference(BeanDefinitionValueResolver.java:275)
395        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
396.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
397        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
398Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
399        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
400Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
401        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
402Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
403        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
404Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
405        at java.security.AccessController.doPrivileged(Native Method)
406        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
407Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
408        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
409ject(AbstractBeanFactory.java:264)
410        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
411y.getSingleton(DefaultSingletonBeanRegistry.java:222)
412        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
413an(AbstractBeanFactory.java:261)
414        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
415(AbstractBeanFactory.java:185)
416        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
417(AbstractBeanFactory.java:164)
418        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
419preInstantiateSingletons(DefaultListableBeanFactory.java:429)
420        at org.springframework.context.support.AbstractApplicationContext.finish
421BeanFactoryInitialization(AbstractApplicationContext.java:728)
422        at org.springframework.context.support.AbstractApplicationContext.refres
423h(AbstractApplicationContext.java:380)
424        at org.springframework.web.context.ContextLoader.createWebApplicationCon
425text(ContextLoader.java:255)
426        at org.springframework.web.context.ContextLoader.initWebApplicationConte
427xt(ContextLoader.java:199)
428        at org.springframework.web.context.ContextLoaderListener.contextInitiali
429zed(ContextLoaderListener.java:45)
430        at com.liferay.portal.spring.context.PortletContextLoaderListener.contex
431tInitialized(PortletContextLoaderListener.java:78)
432        at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextList
433ener.portalInit(PortalClassLoaderServletContextListener.java:90)
434        at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitable
435Util.java:48)
436        at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextList
437ener.contextInitialized(PortalClassLoaderServletContextListener.java:74)
438        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
439t.java:3843)
440        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
441342)
442        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
443.java:791)
444        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
4451)
446        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
447
448        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
449a:926)
450        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
451ava:889)
452        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492
453)
454        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
455        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
456:311)
457        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
458eSupport.java:117)
459        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
460
461        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
462        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
463
464        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
465)
466        at org.apache.catalina.core.StandardService.start(StandardService.java:5
46716)
468        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
469)
470        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
471        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
472        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
473java:39)
474        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
475sorImpl.java:25)
476        at java.lang.reflect.Method.invoke(Method.java:585)
477        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
478        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
479Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
480ng bean with name 'liferayTransactionManager' defined in ServletContext resource
481 [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Cannot resolve reference to b
482ean 'liferayHibernateSessionFactory' while setting bean property 'sessionFactory
483'; nested exception is org.springframework.beans.factory.BeanCreationException:
484Error creating bean with name 'liferayHibernateSessionFactory' defined in Servle
485tContext resource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation o
486f init method failed; nested exception is org.hibernate.MappingException: entity
487 class not found: com.portlet.annuaire.model.impl.DemandeImpl
488        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
489.resolveReference(BeanDefinitionValueResolver.java:275)
490        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
491.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
492        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
493Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
494        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
495Factory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
496        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
497Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
498        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
499Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
500        at java.security.AccessController.doPrivileged(Native Method)
501        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
502Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
503        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
504ject(AbstractBeanFactory.java:264)
505        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
506y.getSingleton(DefaultSingletonBeanRegistry.java:222)
507        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
508an(AbstractBeanFactory.java:261)
509        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
510(AbstractBeanFactory.java:185)
511        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
512(AbstractBeanFactory.java:164)
513        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
514.resolveReference(BeanDefinitionValueResolver.java:269)
515        ... 46 more
516Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
517ng bean with name 'liferayHibernateSessionFactory' defined in ServletContext res
518ource [/WEB-INF/classes/META-INF/hibernate-spring.xml]: Invocation of init metho
519d failed; nested exception is org.hibernate.MappingException: entity class not f
520ound: com.portlet.annuaire.model.impl.DemandeImpl
521        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
522Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
523        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
524Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
525        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
526Factory$1.run(AbstractAutowireCapableBeanFactory.java:409)
527        at java.security.AccessController.doPrivileged(Native Method)
528        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
529Factory.createBean(AbstractAutowireCapableBeanFactory.java:380)
530        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
531ject(AbstractBeanFactory.java:264)
532        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
533y.getSingleton(DefaultSingletonBeanRegistry.java:222)
534        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBe
535an(AbstractBeanFactory.java:261)
536        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
537(AbstractBeanFactory.java:185)
538        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
539(AbstractBeanFactory.java:164)
540        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
541.resolveReference(BeanDefinitionValueResolver.java:269)
542        ... 59 more
543Caused by: org.hibernate.MappingException: entity class not found: com.portlet.a
544nnuaire.model.impl.DemandeImpl
545        at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.
546java:122)
547        at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:19
5481)
549        at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyF
550actory.java:67)
551        at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.jav
552a:147)
553        at org.hibernate.persister.entity.AbstractEntityPersister.<init>(Abstrac
554tEntityPersister.java:457)
555        at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(Sing
556leTableEntityPersister.java:131)
557        at org.hibernate.persister.PersisterFactory.createClassPersister(Persist
558erFactory.java:84)
559        at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:
560261)
561        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
562a:1327)
563        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSession
564Factory(LocalSessionFactoryBean.java:814)
565        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessi
566onFactory(LocalSessionFactoryBean.java:732)
567        at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPr
568opertiesSet(AbstractSessionFactoryBean.java:211)
569        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
570Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
571        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
572Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
573        ... 69 more
574Caused by: java.lang.ClassNotFoundException: com.portlet.annuaire.model.impl.Dem
575andeImpl
576        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
577der.java:1387)
578        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
579der.java:1233)
580        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
581        at java.lang.Class.forName0(Native Method)
582        at java.lang.Class.forName(Class.java:164)
583        at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:123)
584
585        at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.
586java:119)
587        ... 82 more
588Loading file:/C:/projets/chielvr/ext/servers/tomcat/liferay-portal-5.2.3/tomcat-
5896.0.18/webapps/annuaire_chielvr-portlet/WEB-INF/classes/service.properties
59010:07:10,475 ERROR [HotDeployUtil:111] com.liferay.portal.kernel.deploy.hot.HotD
591eployException: Error registering plugins for annuaire_chielvr-portlet
592com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering plugi
593ns for annuaire_chielvr-portlet
594        at com.liferay.portal.deploy.hot.BaseHotDeployListener.throwHotDeployExc
595eption(BaseHotDeployListener.java:58)
596        at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDe
597ploy(PluginPackageHotDeployListener.java:170)
598        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent
599(HotDeployUtil.java:108)
600        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(H
601otDeployUtil.java:153)
602        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(Ho
603tDeployUtil.java:43)
604        at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(P
605ortletContextListener.java:113)
606        at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitable
607Util.java:48)
608        at com.liferay.portal.kernel.servlet.PortletContextListener.contextIniti
609alized(PortletContextListener.java:109)
610        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
611t.java:3843)
612        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
613342)
614        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
615.java:791)
616        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
6171)
618        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
619
620        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
621a:926)
622        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
623ava:889)
624        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492
625)
626        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
627        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
628:311)
629        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
630eSupport.java:117)
631        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
632
633        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
634        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
635
636        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
637)
638        at org.apache.catalina.core.StandardService.start(StandardService.java:5
63916)
640        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
641)
642        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
643        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
644        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
645java:39)
646        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
647sorImpl.java:25)
648        at java.lang.reflect.Method.invoke(Method.java:585)
649        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
650        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
651Caused by: com.liferay.portal.OldServiceComponentException: Build namespace Prox
652iad has build number 4 which is newer than 1
653        at com.liferay.portal.service.impl.ServiceComponentLocalServiceImpl.init
654ServiceComponent(ServiceComponentLocalServiceImpl.java:135)
655        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
656        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
657java:39)
658        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
659sorImpl.java:25)
660        at java.lang.reflect.Method.invoke(Method.java:585)
661        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
662on(AopUtils.java:307)
663        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
664inpoint(ReflectiveMethodInvocation.java:182)
665        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
666ReflectiveMethodInvocation.java:149)
667        at org.springframework.transaction.interceptor.TransactionInterceptor.in
668voke(TransactionInterceptor.java:106)
669        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
670ReflectiveMethodInvocation.java:171)
671        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invok
672e(ExposeInvocationInterceptor.java:89)
673        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
674ReflectiveMethodInvocation.java:171)
675        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
676cAopProxy.java:204)
677        at $Proxy65.initServiceComponent(Unknown Source)
678        at com.liferay.portal.service.ServiceComponentLocalServiceUtil.initServi
679ceComponent(ServiceComponentLocalServiceUtil.java:125)
680        at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.initServ
681iceComponent(PluginPackageHotDeployListener.java:308)
682        at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.doInvoke
683Deploy(PluginPackageHotDeployListener.java:221)
684        at com.liferay.portal.deploy.hot.PluginPackageHotDeployListener.invokeDe
685ploy(PluginPackageHotDeployListener.java:167)
686        ... 30 more


Puis après l'avoir afficher dans liferay tomcat me retourne une autre erreur:

 110:20:50,165 ERROR [jsp:165] org.apache.jasper.JasperException: Impossible de co
 2mpiler la classe pour la JSP:
 3
 4An error occurred at line: 27 in the generated java file
 5Only a type can be imported. com.portlet.annuaire.service.DemandeLocalServiceUti
 6l resolves to a package
 7
 8An error occurred at line: 28 in the generated java file
 9Only a type can be imported. com.portlet.annuaire.model.Demande resolves to a pa
10ckage
11
12Stacktrace:
13        at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErro
14rHandler.java:92)
15        at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher
16.java:330)
17        at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java
18:423)
19        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
20        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
21        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
22        at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
23.java:586)
24        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
25.java:317)
26        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
2742)
28        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
29        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
30        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
31icationFilterChain.java:290)
32        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
33ilterChain.java:206)
34        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
35atcher.java:630)
36        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
37ispatcher.java:535)
38        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
39patcher.java:472)
40        at com.liferay.portlet.PortletRequestDispatcherImpl.dispatch(PortletRequ
41estDispatcherImpl.java:307)
42        at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletReque
43stDispatcherImpl.java:115)
44        at com.liferay.portal.struts.PortletRequestProcessor.doInclude(PortletRe
45questProcessor.java:284)
46        at com.liferay.portal.struts.PortletRequestProcessor.doForward(PortletRe
47questProcessor.java:255)


Sinon comme je l'ai dis, par rapport à un portlet JSP que j'ai déjà développé, je remarque que dans ext/servers/tomcat/liferay-portal-5.2.3/tomcat-6.0.18/webapps/MonPortlet/WEB-INF/lib/ j'ai un fichier MonPortlet.jar
Or lorsque je j'utilise le service builder pour qu'il créer les classe java nécéssaire pour intéragir avec la base le .jar contenu dans lib disparait et le deploy a partir du sdk ne doit donc déjà plus pouvoir le mettre dans l'ext. Je pense que cela est a l'origine de la première erreur. Il ne doit peut-être pas pouvoir créer les beans car il n'a pas le .jar.

Merci encore pour votre aide.

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!