cancel
Showing results for 
Search instead for 
Did you mean: 

Problem While Deploying Java Web Application(Struts,Hiber) on NetWeaver 7.3

Former Member
0 Kudos

Hi

Fortunately i had a requirement to deploy my project JAVA (Struts, HIber, DOJO)web application build as war file using Eclipse 3.4 on SAP Net Weaver 7.3

Its showing in the Deployed Components List of NetWeaver ...

When i tried to open the home page i found an exception ...

The following is the log file content ... Hope its something related to hibernate ...

>deploy s:\usr\sap\trans\EPS\in\LMSDemo.war on_deploy_error=stop

Converting s:\usr\sap\trans\EPS\in\LMSDemo.war to sda

s:\usr\sap\trans\EPS\in\LMSDemo.war has been successfully converted to sda

Deploy settings:

life_cycle=bulk

on_deploy_error=stop

on_prerequisite_error=stop

version_rule=lower

workflow=normal

If there is an offline deployment, Telnet connection to host may be lost, but th

e result can be seen using get_result command

Processing deployment operation, wait...

===== PROGRESS START =====

Deploying JavaEE_LMSDemo (sda) ...

Deployment of JavaEE_LMSDemo (sda) finished.

===== PROGRESS END =====

===== DEPLOY RESULT =====

sdu id: JavaEE_LMSDemo

sdu file path: [S:\usr\sap\N73\J10\j2ee\cluster\server0\temp\tcbldeploy_contro

ller\archives\31\263890545832850\SDA\LMSDemo.war]

version status: NEW

deployment status: Warning

description: [

1. Warning exception has been returned while the [] was starting. Warnings:[

][

Warning occurred on server 102466650 during startApp of JavaEE/LMSDemo : com.sap

.ASJ.web.000607 (Failed in component: JavaEE/LMSDemo, ) Initialization of servle

t action failed. Check init() method of servlet. Error is: [javax.servlet.Unav

ailableException: org/slf4j/LoggerFactory]

]]

===== END DEPLOY RESULT =====

===== Summary - Deploy Result - Start =====

-


Type | Status : Count

-


> SCA(s)

> SDA(s)

- Warning : [1]

-


-


Type | Status : Id

-


> SCA(s)

> SDA(s)

- Warning : JavaEE_LMSDemo,

-


===== Summary - Deploy Result - End =====

>

Does anyone knows this ..

Accepted Solutions (0)

Answers (2)

Answers (2)

rolf_paulsen
Active Participant
0 Kudos

Hi,

for hibernate in SAP NetWeaver 7.1 and above, you need heavy resources for hibernate to avoid trouble with different versions of common java jars used by netweaver and by hibernate.

it is described [in this very good paper|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60642a88-95fe-2b10-d387-a245d48fc257?overridelayout=true].

Regards

Rolf

Former Member
0 Kudos

In your deploy message it says that it can't initialize your servlet because it is missing a java class from the logging framework that is used by hibernate. It might also be possible that that logging framework ([SL4J|http://www.slf4j.org/]) is configured to use a logger that is not available in your Netweaver 7.3 installation. Maybe check the documentation of sl4j for details. There is also a [document|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/bf0d57db-0c01-0010-6fa3-83503981eed4] about Hibernate on Netweaver but that was back when Hibernate did not use sl4j. Probably you just need to add the sl4j library to your libs.