File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Exception related to Spring - in deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Exception related to Spring - in deployment" Watch "Exception related to Spring - in deployment" New topic
Author

Exception related to Spring - in deployment

Angel Marc
Greenhorn

Joined: Feb 22, 2008
Posts: 3
Hi All,

I am trying to deploy an ear file onto OAS 10.1.2 and getting following error:
-----------------------------------------------------
Deployment failed: Nested exception
Resolution:

Base Exception:
com.evermind.server.rmi.OrionRemoteException
Class not found: org.springframework.beans.factory.BeanCreationException; nested exception is:
java.lang.ClassNotFoundException: org.springframework.beans.factory.BeanCreationException. Class not found: org.springframework.beans.factory.BeanCreationException; nested exception is:
java.lang.ClassNotFoundException: org.springframework.beans.factory.BeanCreationException
----------------------------------------------------------------

My code in ApplicationContext file includes:
-----------------------
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>/WEB-INF/classes/hibernate.properties</value>

</list>
</property>
</bean>
-------------------------------------
Code in hibernate.properties include:

hibernate.dialect org.hibernate.dialect.Oracle9Dialect
hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver

hibernate.connection.url jdbc racle:thin:@oracleapp.mycomp.com:1521:se
hibernate.connection.password or4cl3
hibernate.connection.username d_appn
----------------------------------------------



Could anyone please help on this. Thanks in advance.
Angel.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Which JAR did you put in your CLASSPATH ? spring.jar ? If not, you must have at least spring-beans.jar.


[My Blog]
All roads lead to JavaRanch
Angel Marc
Greenhorn

Joined: Feb 22, 2008
Posts: 3
Thanks for the helping me Christophe,

Yeah, I have all spring jars in my classpath :

spring.jar
spring-aspects.jar
spring-beandoc.jar
spring-beans.jar
spring-core.jar
spring-mock.jar

Please let me know if anything else missing.

Thanks,
Angel
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Where did you put them ?
By the way, if you're using spring.jar, you don't need the other JAR files.
Angel Marc
Greenhorn

Joined: Feb 22, 2008
Posts: 3
Thanks Again,

I got them with the project code itself. I am not much into Spring but have to deploy this application which is using Spring.

Anyways, somehow my OC4J is not able to read the classpath I think. SO now I have to figure out that.

Cheers,
Angel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception related to Spring - in deployment
 
Similar Threads
Spring +JAX-RPC +Operation timed out
Exception in thread "main" org.springframework.beans.factory.BeanCreationException
Problem with the Sample Spring AOP application
Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/transactio
Error while Proxying DAO Classes