on 04-05-2011 1:49 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.