cancel
Showing results for 
Search instead for 
Did you mean: 

Where to put config files in webdynpro ?

Former Member
0 Kudos

Hi all:

I have some config files needed to be put in classpath. However, which directory in webdynpro can be used for classpath loader ?

Is META-INF will be loaded by classloader ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I did not understand what you meant by the config files. If you are referring to the jar files then you can go to the project properties and add the jar files in the build path.

Former Member
0 Kudos

Hi Noufal.

config files can be some special xml file which are used for configuration info.

Like the hibernate.xml file for hibernate using.

When I develop one webdynpro application, sometimes I need find a place to put some xml files. But such place should be in classpath.

Former Member
0 Kudos

Hi my friend if you are using dynpro, change your view to Navigator, then go to gen_wdp and in that folder you would to have application.xml, application-j2ee-engine.xml, portalapp.xml

good luck

Josue

Former Member
0 Kudos

Hi Juong,

there are 2 ways, one thing is to package the config file in a jar file and put it into the lib folder of the WD app (only visible in the Navigator). Second thing is to package it in the src/packages folder where your normal java source files are. The problem though WD does not package files with ending xml. Therefore rename your file to e.g. "hibernate.wdxml" because every file with the file ending "wdXY" is packaged.

rgds

David Beisert

Former Member
0 Kudos

hi,

put the config files in WEB-INF folder.

If needed make an entry for the location of file in web.xml.

<b>for eg:</b>

<taglib>

<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>

<taglib-location>/WEB-INF/struts-html.tld</taglib-location>

</taglib>

Regards,

KK

Former Member
0 Kudos

hi,

Pls ignore the prev msg