Announcement Announcement Module
Collapse
No announcement yet.
Problem with Spring in Windows 2008 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with Spring in Windows 2008

    Hi all

    I have a problem with Spring in Windows 2008.Application gets deployed, but it is not starting. I am deploying an ear file that contains .hbm files.We are using spring container and it is deployed the ear in Windows 2008 Server. The appserver is OC4J. Hibernate files are bundled as dataobjects.jar (contains class files and hbm files ) in spring-orm.xml file in the deployment environment.
    Hibernate related configuration in spring-orm.xml is as follows.
    <bean id="sessionFactory"
    class="org.springframework.orm.hibernate3.LocalSes sionFactoryBean">
    <property name="dataSource">
    <ref bean="dataSource" />
    </property>
    <property name="mappingJarLocations">
    <list>
    <value>../ejb/lib/dataobjects.jar</value>
    </list>
    </property>

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'sessionFactory' defined in class path resource [spring-orm.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException: name
    Caused by:
    java.lang.NullPointerException: name at java.util.zip.ZipFile.getEntry(ZipFile.java:247)
    We are getting an exception like the following in Windows 2008 Server. But the same configuration works in Linux and other Windows OS. Kindly help me with your valuable suggestions.
Working...
X