-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to deploy hibernate app under Oracle Content Management
PostPosted: Thu Mar 16, 2006 7:20 am 
Newbie

Joined: Thu Mar 16, 2006 3:14 am
Posts: 3
Hi All,
I have a hibernate application which is perfectly working in Tomcat Server. I need to deploy the application under an OC4J Instance of Oracle Content Management SDK. But when I run the application under Oracle CMSDK Server, some errors are coming. The error is given below.






javax.faces.FacesException: Error calling action method of component with id _id32:_id45
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
at javax.faces.component.UICommand.broadcast(UICommand.java:106)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{UserValidation.validateUser}
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
... 15 more
Caused by: java.lang.ExceptionInInitializerError
at com.daffodilwoods.framework.queryexecuter.HibernateUtil.<clinit>(HibernateUtil.java:66)
at com.daffodilwoods.framework.validation.UserValidation.validateUser(UserValidation.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
... 16 more
Caused by: java.lang.ExceptionInInitializerError
at com.mchange.v2.c3p0.PoolConfig.<clinit>(PoolConfig.java:93)
at org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:84)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:362)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
at com.daffodilwoods.framework.queryexecuter.HibernateUtil.<clinit>(HibernateUtil.java:62)
... 22 more
Caused by: java.lang.ClassCastException
at com.mchange.v2.cfg.BasicMultiPropertiesConfig.extractPropsByKey(BasicMultiPropertiesConfig.java:150)
at com.mchange.v2.cfg.BasicMultiPropertiesConfig.<init>(BasicMultiPropertiesConfig.java:101)
at com.mchange.v2.cfg.BasicMultiPropertiesConfig.<init>(BasicMultiPropertiesConfig.java:39)
at com.mchange.v2.cfg.MultiPropertiesConfig.read(MultiPropertiesConfig.java:64)
at com.mchange.v2.cfg.MultiPropertiesConfig.readVmConfig(MultiPropertiesConfig.java:73)
at com.mchange.v2.log.MLog.<clinit>(MLog.java:48)
... 30 more








The Oracle CMSDK server started but the above error is coming while I am submitting my login page.

Can you please tell what are the procedures to deploy a hibernate app under an Oracle CMSDK Server.

Thanks in advance
Basil


Top
 Profile  
 
 Post subject: How to deploy hibernate app under Oracle OC4J
PostPosted: Fri Mar 17, 2006 3:04 am 
Newbie

Joined: Thu Mar 16, 2006 3:14 am
Posts: 3
Hi Hibernate experts,
I am replying to my self

I have tested the application in several ways. Since I need to use Content Management SDK, I have to add some Http node configuration in oc4j.properties file.

For example, I have to add like below.


IFS.DOMAIN.NODE.IfsHome=E\:/OraHome/ifs/cmsdk
IFS.DOMAIN.Name=ifs\://ritesh\:1521\:CMSDK.daffodildb.com\:CM_SCHEMA
IFS.DOMAIN.NODE.Name=Sample2HttpNode
IFS.DOMAIN.NODE.OracleHome=E\:/OraHome


If I remove the above lines from the oc4j.properties, then the application will work by throwing some content management error. So at this time the application is connecting to DB server through hibernate. But when I add the above four lines for getting CMSDK connection the error that I posted earlier is coming.

I think the error is coming when it is trying to connect to the DB server through hibernate. Do I need to add any other configuration settings for getting the hibernate connectivity?

Any suggestions are appreciated.

Thanks
Basil


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 22, 2006 8:15 am 
Newbie

Joined: Thu Mar 16, 2006 3:14 am
Posts: 3
Hi,
I got the solution for my problem. The error came because of the hibernate pooling. I removed the hibernate pooling lines from my hibernate configuration file and it is working fine.l

Thanks
Basil


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

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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.