Skip to Content

Deploy a Spring/hibernate app on Netwaver Java

Hi,

I have a Spring/hibernate application that I need to deploy on my Netwaver java server.

I have just deployeed the code and then I get the code and then I get the following errors.

I have created a local SC with a WAR DC containing the code. I have created an external libery for Struts and one for spring and the other files.

When I deploy the code I get the following error.

Should I only use on libery and is there something else I need to do before I can run the application. I'm using Netweaver 7.11.

1. File:C:\Documents and Settings\XPMUser\workspace71.jdi\LocalDevelopment\SimplePIArchive\figaf.com\com\figaf\simple\piarchive\ear\_comp\gen\default\deploy\figaf.comcomfigafsimplepi~ear.ear

Name:comfigafsimplepiear

Vendor:figaf.com

Location:localDevelopment

Version:20110405133355

Deploy status:Warning

Version:SAME

Description:

1. Warning exception has been returned while the [figaf.com/comfigafsimplepiarchiveear] was starting. Warnings:[

][

Warning occurred on server 9313350 during startApp figaf.com/comfigafsimplepiarchiveear : ASJ.web.000607 (Failed in component: figaf.com/comfigafsimplepiarchiveear, ) Initialization of servlet [action] failed. Check init() method of servlet. Error is: [javax.servlet.UnavailableException: org.apache.commons.digester.Digester.parse(Ljava/net/URL;)Ljava/lang/Object;]

Warning occurred on server 9313350 during startApp figaf.com/comfigafsimplepiarchiveear : ASJ.web.000607 (Failed in component: figaf.com/comfigafsimplepiarchiveear, ) Initialization of servlet [context] failed. Check init() method of servlet. Error is: [org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'manageBucketsServices' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'manageBucketsDAO' while setting bean property 'manageBucketsDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'manageBucketsDAO' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException: while trying to invoke the method java.lang.Object.hashCode() of an object loaded from local variable 'key']

]

Result

Status:Warning

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Apr 07, 2011 at 10:04 PM

    Hi,

    to use hibernate in NetWeavere Java, you must bundle and deploy the hibernate jars in a so called "heavy resource" enterprise application because hibernate needs different versions of classes from the NetWeaver core (especially apache classes) and must override these using "heavy classloading".

    Maybe similar issue with spring.

    See [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60642a88-95fe-2b10-d387-a245d48fc257]

    Regards

    Rolf

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.