cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring classpath for a deployed application on CE 7.1

Former Member
0 Kudos

Hi

I posted the question [here|;, but no answer (might be the wrong forum?) Let's do one more try here:

I'd ike to configure the classpath for a deployed J2EE application on NWCE10 (setting the application classpath, not the jvm classpath). Obviously it is possible to adapt the file applicationj2ee-engine.xml and set the classpath there, but I'd like to configure it in the administration tool (<host>:<port>/nwa)

Is this possible?

Thanks for your help!

Best regards

Bettina

Accepted Solutions (1)

Accepted Solutions (1)

Vlado
Advisor
Advisor
0 Kudos

Hi Bettina,

No, it's not possible. application-j2ee-engine.xml is the way to go.

Regards,

Vladimir

Former Member
0 Kudos

Hi Vladimir

Thanks for your answer! Is this an "official" SAP statement? And if yes, where can I get information on how the classpath should be formatted in application-j2ee-engine.xml? E.g., do I have to write /path/to/my/classpath or \path\to\my\classpath?

Kind regards

Bettina

Vlado
Advisor
Advisor
0 Kudos

Hi Bettina,

You can find confirmation / information on how the "classpath" should be formatted in application-j2ee-engine.xml [here|http://help.sap.com/saphelp_nwce10/helpdata/en/45/053c1041f30486e10000000a155369/frameset.htm] and [here|http://help.sap.com/saphelp_nwce10/helpdata/en/44/f447a8d62b0484e10000000a155369/frameset.htm].

Actually, as you can see, you don't work with a classpath directly, rather specify references (dependencies) to other components that you should also make available on the server.

HTH!

\-- Vladimir

Former Member
0 Kudos

Hi Vladimir

thanks for helping! Actually, adding libraries is not my requirement. I need to configure a path to an xml-file which contains my log-configuration.

I know the document here: (http://help.sap.com/saphelp_nwce10/helpdata/en/45/053c1041f30486e10000000a155369/frameset.htm), but I was looking for something a little less abstract or with an example....

Is application-j2ee-engine the right place for configuring a "classpath" where an application can find single xml-fles?

Kind regards

Bettina

Vlado
Advisor
Advisor
0 Kudos

Hi Bettina,

No, actually the "classpath" element in the application-j2ee-engine.xsd is obsolete and should not even be in the schema. We'll fix this in the help library asap. Thanks for bringing it to our attention.

On the other hand, the log-configuration.xml file does not exist anymore (since CE 7.1 SP3). Please check this [note|http://help.sap.com/saphelp_nwce10/helpdata/en/45/daf537a1772e97e10000000a155369/frameset.htm].

Cheers,

Vladimir

Former Member
0 Kudos

Dear Vladimir,

maybe I should explain what we really would like to achieve: We are using Logback as Logging Framework. Logback uses a file called logback.xml where appenders and loggers are defined. That file must be in the classpath of our application. For Netweaver CE 7.1 we are using a modified logback.xml-File which contains a special appender to allow for SAP logging.

We would like to add the logback.xml to the classpath without storing it inside the EAR, therefore we are looking for a way to configure the path outside the EAR after deployment. How can we meet this goal?

I hope I could make myself clear now.

Best regards

Bettina

Answers (0)