-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Axis, Hibernate, Spring
PostPosted: Wed Jan 27, 2010 10:31 am 
Newbie

Joined: Wed Jan 27, 2010 10:27 am
Posts: 1
Hi there I'm working on webservice where I'm using also Spring and Axis2.
When I'm invoking webservice wich acess database application fails with

INFO: [ERROR] Unknown entity: sk.digitalsystems.eucrm.domain.Version

org.apache.axis2.AxisFault: Unknown entity: sk.digitalsystems.eucrm.domain.Version
at org.apache.axis2.rpc.receivers.RPCMessageReceiver. invokeBusinessLogic(RPCMessageReceiver.java:158)
at org.apache.axis2.receivers.AbstractInOutMessageRec eiver.invokeBusinessLogic(AbstractInOutMessageRece iver.java:40)
at org.apache.axis2.receivers.AbstractMessageReceiver .receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEng ine.java:176)
at org.apache.axis2.transport.http.util.RESTUtil.invo keAxisEngine(RESTUtil.java:136)
at org.apache.axis2.transport.http.util.RESTUtil.proc essURLRequest(RESTUtil.java:130)
at org.apache.axis2.transport.http.AxisServlet$RestRe questProcessor.processURLRequest(AxisServlet.java: 829)
at org.apache.axis2.transport.http.AxisServlet.doGet( AxisServlet.java:255)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:847)
at org.apache.catalina.core.StandardWrapper.service(S tandardWrapper.java:1523)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke(S tandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipel ine.java:97)
at com.sun.enterprise.web.PESessionLockingStandardPip eline.invoke(PESessionLockingStandardPipeline.java :85)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doServ ice(CoyoteAdapter.java:332)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMappe r.service(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(P rocessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(Proce ssorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(Process orTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute (DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtoc olFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(Htt pProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(Pr otocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(Selec tionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:6 9)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doW ork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run (AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.axis2.rpc.receivers.RPCUtil.invokeServi ceClass(RPCUtil.java:165)
at org.apache.axis2.rpc.receivers.RPCMessageReceiver. invokeBusinessLogic(RPCMessageReceiver.java:102)
... 33 more
Caused by: org.hibernate.MappingException: Unknown entity: sk.digitalsystems.eucrm.domain.Version
at org.hibernate.impl.SessionFactoryImpl.getEntityPer sister(SessionFactoryImpl.java:548)
at org.hibernate.event.def.DefaultLoadEventListener.o nLoad(DefaultLoadEventListener.java:68)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImp l.java:878)
at org.hibernate.impl.SessionImpl.get(SessionImpl.jav a:815)
at org.hibernate.impl.SessionImpl.get(SessionImpl.jav a:808)
at sk.digitalsystems.eucrm.domain.dao.VersionDao.getV ersion(VersionDao.java:24)
at sample.WeatherService.getVersion(WeatherService.ja va:58)
... 39 more

My applicationContext.xml
<beans>
<bean id="applicationContext"
class="org.apache.axis2.extensions.spring.receiver s.ApplicationContextHolder" />
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotati on.AnnotationSessionFactoryBean">
<property name="configLocation" value="classpath:hibernate.cfg.xml" />
</bean>


<bean id="versionDao" class="sk.digitalsystems.eucrm.domain.dao.VersionD ao">
<property name="sessionFactory" ref="sessionFactory" />
</bean>
</beans>

My hibernate.cfg.xml
<hibernate-configuration>

<session-factory>

<!-- Database connection settings -->
<property name="connection.driver_class">org.postgresql.Driv er</property>
<property name="connection.url">jdbcostgresql://127.0.0.1:5432/test</property>
<property name="connection.username">xxx</property>
<property name="connection.password">xxx</property>
<!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property>

<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.PostgreSQLDia lect</property>

<!-- Enable Hibernate's automatic session context management -->
<property name="current_session_context_class">thread</property>

<!-- Disable the second-level cache -->
<property name="cache.provider_class">org.hibernate.cache.No CacheProvider</property>

<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>

<!-- Drop and re-create the database schema on startup -->
<!--<property name="hbm2ddl.auto">create</property> -->

<mapping class="sk.digitalsystems.eucrm.domain.Version" />

</session-factory>

</hibernate-configuration>

Does somebody faced with this problem? pls help


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.