cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy a Spring/hibernate app on Netwaver Java

DG
Active Contributor
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

rolf_paulsen
Active Participant
0 Kudos

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

DG
Active Contributor
0 Kudos

Hi,

It seems quite close to solve the problem.

I still get the same error. Maybe I'm missing something to make it work.

Daniel

Former Member
0 Kudos

Hi Daniel,

You can take a look at the following two articles:

[Running JPA Applications with Hibernate as a Third-Party Persistence Provider on SAP NetWeaver CE 7.1 EHP1|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50c5bd44-36c6-2c10-9283-9a26354c7aa9]

[Running Spring-Based Applications on SAP NetWeaver Composition Environment 7.1 and MS SQL Server 2005|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/40eb2f24-9898-2c10-2396-9c9f35b637d9]

I hope they can help you with any uncertainties.

Regards,

Yordan

DG
Active Contributor
0 Kudos

Hi,

I did not contenue on the path of trying the Spring app. I started from scratch I figured that it would be easier to create an app that works on more applications.

Daniel

Answers (0)