Re: Web Service Error with HibernateSpatial

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Web Service Error with HibernateSpatial

Kahler, Jason J (US SSA)
All the hibernate jars are in my archive (Axis2 aar file)
Under lib/ unfortunately axis2 used its own separate class loader
For each service and it is causing me grief.

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On
Behalf Of Karel Maesen
Sent: Tuesday, October 16, 2007 8:41 AM
To: Hibernate Spatial Users Discussion
Subject: Re: [hibernatespatial-users] Web Service Error with
HibernateSpatial

Hi Jason,

Could you list what you have on the Classpath.  At first sight, it  
looks like you don't have Hibernate Core on the classpath. The class  
that is reported as not being found is part of Hibernate Core.

Regards,

Karel Maesen



On 16 Oct 2007, at 13:38, Kahler, Jason J ((US SSA)) wrote:

> I am trying to use hibernate / spatial in my Axis 2 web Service.
>
> When I try to initialize my session With :
>
>
>
> try
>
>         {
>
>             AnnotationConfiguration cfg = new  
> AnnotationConfiguration();
>
>             sessionFactory = cfg.configure().buildSessionFactory();
>
>
>
>             SchemaUpdate updater = new SchemaUpdate( cfg );
>
>             updater.execute( false, true );
>
>         }
>
>         catch (Throwable ex)
>
>         {
>
>             ex.printStackTrace();
>
>            log.debug( "Initial SessionFactory creation failed. ",ex );
>
>             // Make sure you log the exception, as it might be  
> swallowed
>
>             System.err.println( "Initial SessionFactory creation  
> failed. " + ex );
>
>             throw new ExceptionInInitializerError( ex );
>
>         }
>
>
>
> I get the following error:
>
>
>
> Initial SessionFactory creation failed.  
> java.lang.NoClassDefFoundError: org/hibernate/usertype/UserType
>
> java.lang.ExceptionInInitializerError
>
>         at com.bae.nedc.wfnp.util.HibernateUtil.<clinit>
> (HibernateUtil.java:37)
>
>         at  
> com.bae.nedc.wfnp.configuration.WFNPConfiguration.catalogConfigExists(

> WFNPConfiguration.java:79)
>
>         at  
> com.bae.nedc.wfnp.configuration.WFNPConfiguration.getConfig
> (WFNPConfiguration.java:56)
>
>         at  
> com.bae.nedc.wfnp.configuration.WFNPConfiguration.getStagingPath
> (WFNPConfiguration.java:172)
>
>         at com.bae.nedc.wfnp.create.HoldingManager.<init>
> (HoldingManager.java:46)
>
>         at wfnp.HoldingManagerSoapBindingImpl.getHoldingManager
> (HoldingManagerSoapBindingImpl.java:62)
>
>         at wfnp.HoldingManagerSoapBindingImpl.createAndStoreHolding
> (HoldingManagerSoapBindingImpl.java:75)
>
>         at  
> wfnp.HoldingManagerServiceMessageReceiverInOut.invokeBusinessLogic
> (HoldingManagerServiceMessageReceiverInOut.java:48)
>
>         at  
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusi

> nessLogic(AbstractInOutSyncMessageReceiver.java:42)
>
>         at  
> org.apache.axis2.receivers.AbstractMessageReceiver.receive
> (AbstractMessageReceiver.java:96)
>
>         at org.apache.axis2.engine.AxisEngine.receive
> (AxisEngine.java:145)
>
>         at  
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequ

> est(HTTPTransportUtils.java:275)
>
>         at org.apache.axis2.transport.http.AxisServlet.doPost
> (AxisServlet.java:120)
>
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:
> 710)
>
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:
> 803)
>
>         at  
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:269)
>
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:188)
>
>         at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:213)
>
>         at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:174)
>
>         at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:127)
>
>         at org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:117)
>
>         at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:108)
>
>         at org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.java:151)
>
>         at org.apache.coyote.http11.Http11Processor.process
> (Http11Processor.java:874)
>
>         at org.apache.coyote.http11.Http11BaseProtocol
> $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:
> 665)
>
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:528)
>
>         at  
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:81)
>
>         at org.apache.tomcat.util.threads.ThreadPool
> $ControlRunnable.run(ThreadPool.java:689)
>
>         at java.lang.Thread.run(Thread.java:595)
>
> Caused by: java.lang.NoClassDefFoundError: org/hibernate/usertype/
> UserType
>
>         at java.lang.ClassLoader.defineClass1(Native Method)
>
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>
>         at java.security.SecureClassLoader.defineClass
> (SecureClassLoader.java:124)
>
>         at  
> org.apache.catalina.loader.WebappClassLoader.findClassInternal
> (WebappClassLoader.java:1852)
>
>         at org.apache.catalina.loader.WebappClassLoader.findClass
> (WebappClassLoader.java:876)
>
>         at org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1329)
>
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>
>
>
>
>
> _______________________________________________
> hibernatespatial-users mailing list
> [hidden email]
> http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/ 
> hibernatespatial-users

_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatia
l-users

_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users